diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 11:57:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 11:57:57 +0000 |
commit | db0fc5131ddd2be57c4a94e4cc5a31d855bf8e25 (patch) | |
tree | 6c1072cda1c7c552e14f88da5687372392cc4ca7 /clang/lib/AST/StmtDumper.cpp | |
parent | 2f56992964a308e85ea5b39e836d04d498ea521d (diff) | |
download | bcm5719-llvm-db0fc5131ddd2be57c4a94e4cc5a31d855bf8e25.tar.gz bcm5719-llvm-db0fc5131ddd2be57c4a94e4cc5a31d855bf8e25.zip |
Print NamedDecls directly to a raw_ostream where possible.
llvm-svn: 149982
Diffstat (limited to 'clang/lib/AST/StmtDumper.cpp')
-rw-r--r-- | clang/lib/AST/StmtDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtDumper.cpp b/clang/lib/AST/StmtDumper.cpp index bfbacf4f306..90a8fb611a7 100644 --- a/clang/lib/AST/StmtDumper.cpp +++ b/clang/lib/AST/StmtDumper.cpp @@ -287,7 +287,7 @@ void StmtDumper::DumpDeclarator(Decl *D) { PrintingPolicy(UD->getASTContext().getLangOptions())); OS << ";\""; } else if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) { - OS << "label " << LD->getNameAsString(); + OS << "label " << *LD; } else if (StaticAssertDecl *SAD = dyn_cast<StaticAssertDecl>(D)) { OS << "\"static_assert(\n"; DumpSubTree(SAD->getAssertExpr()); |