зеркало из https://github.com/microsoft/clang.git
Change GetNullarySelector and GetUnarySelector to take a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8026f6d82f
Коммит
d05c2006f2
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче