diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-05 04:20:37 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-05 04:20:37 +0000 |
commit | 7ad5c996e9519ed4e9afd1f0166be1cd2be8415a (patch) | |
tree | ab8cc5b62780dc1e46155ae87caf7c7d9f5cba17 /lib/AST/Expr.cpp | |
parent | 27a00970bf4ababdc115e54383e6252cc3276dfa (diff) |
Use raw_ostream in TypePrinter and eliminate uses of temporary std::strings.
Part of rdar://10796159
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index fcde5429b3..afc7410a81 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -414,9 +414,7 @@ std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) { if (FT) { for (unsigned i = 0, e = Decl->getNumParams(); i != e; ++i) { if (i) POut << ", "; - std::string Param; - Decl->getParamDecl(i)->getType().getAsStringInternal(Param, Policy); - POut << Param; + POut << Decl->getParamDecl(i)->getType().stream(Policy); } if (FT->isVariadic()) { |