forked from OSchip/llvm-project
Change GetNullarySelector and GetUnarySelector to take a StringRef.
llvm-svn: 127571
This commit is contained in:
parent
d7b15bd6b7
commit
7e056d106b
|
@ -1529,13 +1529,13 @@ private:
|
|||
};
|
||||
|
||||
/// @brief Utility function for constructing a nullary selector.
|
||||
static inline Selector GetNullarySelector(const char* name, ASTContext& Ctx) {
|
||||
static inline Selector GetNullarySelector(llvm::StringRef name, ASTContext& Ctx) {
|
||||
IdentifierInfo* II = &Ctx.Idents.get(name);
|
||||
return Ctx.Selectors.getSelector(0, &II);
|
||||
}
|
||||
|
||||
/// @brief Utility function for constructing an unary selector.
|
||||
static inline Selector GetUnarySelector(const char* name, ASTContext& Ctx) {
|
||||
static inline Selector GetUnarySelector(llvm::StringRef name, ASTContext& Ctx) {
|
||||
IdentifierInfo* II = &Ctx.Idents.get(name);
|
||||
return Ctx.Selectors.getSelector(1, &II);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue