diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-23 13:53:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-23 13:53:57 +0000 |
commit | b063ef0222a99ee168631afa7b5a882d494b8fde (patch) | |
tree | 345ea6f0e764a37b2ef161df880557b30e015100 /lib/AST/Expr.cpp | |
parent | c4cca7b2408bdfd99ea0f63fec1421c1327593b2 (diff) |
Add streamed versions of getQualifiedNameAsString.
Move the cold virtual method getNameForDiagnostic out of line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 66980a9cd1..b97f4d1d3a 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -477,8 +477,9 @@ std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) { } PrintingPolicy Policy(Context.getLangOpts()); - std::string Proto = FD->getQualifiedNameAsString(Policy); + std::string Proto; llvm::raw_string_ostream POut(Proto); + FD->printQualifiedName(POut, Policy); const FunctionDecl *Decl = FD; if (const FunctionDecl* Pattern = FD->getTemplateInstantiationPattern()) |