constify methods.

llvm-svn: 76873
diff --git a/clang/include/clang/Index/Entity.h b/clang/include/clang/Index/Entity.h
index 490a648..cd87e4c 100644
--- a/clang/include/clang/Index/Entity.h
+++ b/clang/include/clang/Index/Entity.h
@@ -58,7 +58,7 @@
   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 c7924f6..25061e6 100644
--- a/clang/lib/Index/Entity.cpp
+++ b/clang/lib/Index/Entity.cpp
@@ -156,7 +156,7 @@
   return Val.get<EntityImpl *>()->getDecl(AST);
 }
 
-std::string Entity::getPrintableName() {
+std::string Entity::getPrintableName() const {
   if (isInvalid())
     return "<< Invalid >>";