[cfe-commits] r127571 - /cfe/trunk/include/clang/AST/ASTContext.h

Anders Carlsson andersca at mac.com
Sun Mar 13 13:32:45 PDT 2011


Author: andersca
Date: Sun Mar 13 15:32:45 2011
New Revision: 127571

URL: http://llvm.org/viewvc/llvm-project?rev=127571&view=rev
Log:
Change GetNullarySelector and GetUnarySelector to take a StringRef.

Modified:
    cfe/trunk/include/clang/AST/ASTContext.h

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=127571&r1=127570&r2=127571&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Sun Mar 13 15:32:45 2011
@@ -1529,13 +1529,13 @@
 };
   
 /// @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);
 }





More information about the cfe-commits mailing list