summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclPrinter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-08-14 14:50:32 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-08-14 14:50:32 +0000
commit9299d8c2981979a39bcd0dc0555efae89ea855dd (patch)
tree5c7d95bae088a098426fec05322d479d695ca515 /clang/lib/AST/DeclPrinter.cpp
parentbf479714f95dc4897c553c3f59855bb5468845af (diff)
downloadbcm5719-llvm-9299d8c2981979a39bcd0dc0555efae89ea855dd.tar.gz
bcm5719-llvm-9299d8c2981979a39bcd0dc0555efae89ea855dd.zip
Do NOT use inline functions with LLVM_ATTRIBUTE_USED.
The function will be emitted into every single TU including the header! llvm-svn: 161872
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index aad0ca1b536..8a53900d5d0 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -175,6 +175,10 @@ void DeclContext::dumpDeclContext() const {
Printer.VisitDeclContext(const_cast<DeclContext *>(this), /*Indent=*/false);
}
+void Decl::dump() const {
+ dump(llvm::errs());
+}
+
void Decl::dump(raw_ostream &Out) const {
PrintingPolicy Policy = getASTContext().getPrintingPolicy();
Policy.Dump = true;
OpenPOWER on IntegriCloud