Add NamedDecl::printName() for clients that to use getNameAsString() but are already using a raw_ostream.

llvm-svn: 103284
This commit is contained in:
Ted Kremenek 2010-05-07 20:07:19 +00:00
parent 496e8b345c
commit c14f5eb3ec
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ public:
// FIXME: Deprecated, move clients to getName().
std::string getNameAsString() const { return Name.getAsString(); }
void printName(llvm::raw_ostream &os) const { return Name.printName(os); }
/// getDeclName - Get the actual, stored name of the declaration,
/// which may be a special name.
DeclarationName getDeclName() const { return Name; }