aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TemplateBase.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 11:57:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 11:57:57 +0000
commita59d20b135bfde058a5a69045bab5ec4e2553f74 (patch)
tree315b8539cc8af111d5cfc6d843ca040f974cc0f3 /lib/AST/TemplateBase.cpp
parentf978059b82db8c0d849c5f992036210b5ca53200 (diff)
Print NamedDecls directly to a raw_ostream where possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TemplateBase.cpp')
-rw-r--r--lib/AST/TemplateBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/TemplateBase.cpp b/lib/AST/TemplateBase.cpp
index 25165972ef..7e6bae2b26 100644
--- a/lib/AST/TemplateBase.cpp
+++ b/lib/AST/TemplateBase.cpp
@@ -326,7 +326,7 @@ void TemplateArgument::print(const PrintingPolicy &Policy,
if (NamedDecl *ND = dyn_cast_or_null<NamedDecl>(getAsDecl())) {
if (ND->getDeclName()) {
Unnamed = false;
- Out << ND->getNameAsString();
+ Out << *ND;
}
}