Add const to debug hook...

llvm-svn: 42025
This commit is contained in:
Steve Naroff 2007-09-17 14:49:06 +00:00
parent 51d1929b9e
commit 83763f2c40
2 changed files with 2 additions and 2 deletions

View 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:

View 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.