commit | 6c8231337547d3617196e532080625916596785b | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Fri Jul 24 03:38:27 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Fri Jul 24 03:38:27 2009 +0000 |
tree | fddfc9a1e74954b7f882f6cca4f7c076354f79e6 | |
parent | 5cd4dd391f9c8ff9e42f42569b5a44f14de8806c [diff] [blame] |
Constify methods. llvm-svn: 76939
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index 25061e6..85b4f2e 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/lib/Index/Entity.cpp
@@ -145,7 +145,7 @@ Entity::Entity(Decl *D) : Val(D->getCanonicalDecl()) { } /// \brief Find the Decl that can be referred to by this entity. -Decl *Entity::getDecl(ASTContext &AST) { +Decl *Entity::getDecl(ASTContext &AST) const { if (isInvalid()) return 0;