diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-23 08:32:25 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-23 08:32:25 +0000 |
| commit | fdd52922c2ed7f9ae50009937f9187e1bfb9235e (patch) | |
| tree | 1abf9a75292492a6176743f19a4cc8b2488d7236 | |
| parent | edda8cbfad067b2520d8080cd45b433487ba2e7f (diff) | |
| download | bcm5719-llvm-fdd52922c2ed7f9ae50009937f9187e1bfb9235e.tar.gz bcm5719-llvm-fdd52922c2ed7f9ae50009937f9187e1bfb9235e.zip | |
constify methods.
llvm-svn: 76873
| -rw-r--r-- | clang/include/clang/Index/Entity.h | 2 | ||||
| -rw-r--r-- | clang/lib/Index/Entity.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Index/Entity.h b/clang/include/clang/Index/Entity.h index 490a648926c..cd87e4ccc16 100644 --- a/clang/include/clang/Index/Entity.h +++ b/clang/include/clang/Index/Entity.h @@ -58,7 +58,7 @@ public: Decl *getDecl(ASTContext &AST); /// \brief Get a printable name for debugging purpose. - std::string getPrintableName(); + std::string getPrintableName() const; /// \brief Get an Entity associated with the given Decl. /// \returns Null if an Entity cannot refer to this Decl. diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index c7924f65fc3..25061e61501 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/lib/Index/Entity.cpp @@ -156,7 +156,7 @@ Decl *Entity::getDecl(ASTContext &AST) { return Val.get<EntityImpl *>()->getDecl(AST); } -std::string Entity::getPrintableName() { +std::string Entity::getPrintableName() const { if (isInvalid()) return "<< Invalid >>"; |

