[cfe-commits] r41503 - in /cfe/trunk: AST/ASTContext.cpp include/clang/AST/ASTContext.h

Chris Lattner sabre at nondot.org
Mon Aug 27 10:56:57 PDT 2007


Author: lattner
Date: Mon Aug 27 12:56:57 2007
New Revision: 41503

URL: http://llvm.org/viewvc/llvm-project?rev=41503&view=rev
Log:
constify some stuff


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

Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=41503&r1=41502&r2=41503&view=diff

==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Mon Aug 27 12:56:57 2007
@@ -314,8 +314,8 @@
 
 /// getEnumDeclIntegerType - returns the integer type compatible with the
 /// given enum type.
-QualType ASTContext::getEnumDeclIntegerType(EnumDecl *ED) const {
-  if (EnumConstantDecl *C = ED->getEnumConstantList())
+QualType ASTContext::getEnumDeclIntegerType(const EnumDecl *ED) const {
+  if (const EnumConstantDecl *C = ED->getEnumConstantList())
     return C->getType();
 
   // If the enum list is empty, it is typed as if it contained a single zero 

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

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Mon Aug 27 12:56:57 2007
@@ -149,7 +149,7 @@
   
   /// getEnumDeclIntegerType - returns the integer type compatible with the
   /// given enum type.
-  QualType getEnumDeclIntegerType(EnumDecl *ED) const;
+  QualType getEnumDeclIntegerType(const EnumDecl *ED) const;
   
   //===--------------------------------------------------------------------===//
   //                            Type Operators





More information about the cfe-commits mailing list