]> granicus.if.org Git - clang/commitdiff
Add const to debug hook...
authorSteve Naroff <snaroff@apple.com>
Mon, 17 Sep 2007 14:49:06 +0000 (14:49 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 17 Sep 2007 14:49:06 +0000 (14:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42025 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Decl.cpp
include/clang/AST/Decl.h

index ee5b073918a044492e8881173448014a60ff4451..d45780043fb0a80ecb924bf3d53f587ada73903b 100644 (file)
@@ -33,7 +33,7 @@ static unsigned nIvarDecls = 0;
 
 static bool StatSwitch = false;
 
-const char *Decl::getDeclKindName() {
+const char *Decl::getDeclKindName() const {
   switch (DeclKind) {
   default: assert(0 && "Unknown decl kind!");
   case Typedef:
index 4e064675b7fa7ef168a92e2e22d94737a948e69f..96c6657a75faa479333a6d985cea711153d09156 100644 (file)
@@ -69,7 +69,7 @@ protected:
 public:
   
   Kind getKind() const { return DeclKind; }
-  const char *getDeclKindName();
+  const char *getDeclKindName() const;
   
   /// setInvalidDecl - Indicates the Decl had a semantic error. This
   /// allows for graceful error recovery.