[cfe-commits] r89784 - /cfe/trunk/include/clang/AST/DeclarationName.h

John McCall rjmccall at apple.com
Tue Nov 24 10:44:29 PST 2009


Author: rjmccall
Date: Tue Nov 24 12:44:29 2009
New Revision: 89784

URL: http://llvm.org/viewvc/llvm-project?rev=89784&view=rev
Log:
DeclarationName::getIdentifier should take a const IdentifierInfo, since the
constructor does anyway.


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

Modified: cfe/trunk/include/clang/AST/DeclarationName.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclarationName.h?rev=89784&r1=89783&r2=89784&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclarationName.h (original)
+++ cfe/trunk/include/clang/AST/DeclarationName.h Tue Nov 24 12:44:29 2009
@@ -293,7 +293,7 @@
 
   /// getIdentifier - Create a declaration name that is a simple
   /// identifier.
-  DeclarationName getIdentifier(IdentifierInfo *ID) {
+  DeclarationName getIdentifier(const IdentifierInfo *ID) {
     return DeclarationName(ID);
   }
 





More information about the cfe-commits mailing list