Add NamedDecl::printName() for clients that to use getNameAsString() but are already using a raw_ostream.
llvm-svn: 103284
This commit is contained in:
parent
496e8b345c
commit
c14f5eb3ec
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue