From 83763f2c40f715212336b3848f98c52d9389addb Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Mon, 17 Sep 2007 14:49:06 +0000 Subject: [PATCH] Add const to debug hook... llvm-svn: 42025 --- clang/AST/Decl.cpp | 2 +- clang/include/clang/AST/Decl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/AST/Decl.cpp b/clang/AST/Decl.cpp index ee5b073918a0..d45780043fb0 100644 --- a/clang/AST/Decl.cpp +++ b/clang/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/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 4e064675b7fa..96c6657a75fa 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/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. -- GitLab