From: Steve Naroff Date: Mon, 17 Sep 2007 14:49:06 +0000 (+0000) Subject: Add const to debug hook... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5ea380858f3d0a168c44ba42684e821997933d7;p=clang Add const to debug hook... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42025 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/Decl.cpp b/AST/Decl.cpp index ee5b073918..d45780043f 100644 --- a/AST/Decl.cpp +++ b/AST/Decl.cpp @@ -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: diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 4e064675b7..96c6657a75 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -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.