Change GetNullarySelector and GetUnarySelector to take a StringRef.

llvm-svn: 127571
This commit is contained in:
Anders Carlsson 2011-03-13 20:32:45 +00:00
parent d7b15bd6b7
commit 7e056d106b
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}