[cfe-commits] r84361 - /cfe/trunk/include/clang/Basic/IdentifierTable.h

Daniel Dunbar daniel at zuster.org
Sat Oct 17 13:44:06 PDT 2009


Author: ddunbar
Date: Sat Oct 17 15:44:06 2009
New Revision: 84361

URL: http://llvm.org/viewvc/llvm-project?rev=84361&view=rev
Log:
Add IdentifierTable::CreateIdentifierInfo(StringRef).

Modified:
    cfe/trunk/include/clang/Basic/IdentifierTable.h

Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=84361&r1=84360&r2=84361&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
+++ cfe/trunk/include/clang/Basic/IdentifierTable.h Sat Oct 17 15:44:06 2009
@@ -342,8 +342,11 @@
 
     return *II;
   }
+  IdentifierInfo &CreateIdentifierInfo(llvm::StringRef Name) {
+    return CreateIdentifierInfo(Name.begin(), Name.end());
+  }
 
-  IdentifierInfo &get(const llvm::StringRef& Name) {
+  IdentifierInfo &get(llvm::StringRef Name) {
     return get(Name.begin(), Name.end());
   }
 





More information about the cfe-commits mailing list