summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentDumper.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-18 16:30:42 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-18 16:30:42 +0000
commit761447cd98eb6547f815f08fb1593733c26de2a8 (patch)
treea980f6fd1702be45d966e8845f7232fbeec4fbd6 /clang/lib/AST/CommentDumper.cpp
parentab34919413560f884fbda747b493c6d5a40c3456 (diff)
downloadbcm5719-llvm-761447cd98eb6547f815f08fb1593733c26de2a8.tar.gz
bcm5719-llvm-761447cd98eb6547f815f08fb1593733c26de2a8.zip
On Darwin, the linker removes functions in CommentDumper.o (Comment::dump())
despite __attribute__(__used__). As explained by Argyrios, > .a archive files do some stripping of their own and they remove .o files that > contain functions that are not referenced by any other .o file. The fix is to use these functions from another .o file. Thanks, Argyrios! llvm-svn: 160437
Diffstat (limited to 'clang/lib/AST/CommentDumper.cpp')
-rw-r--r--clang/lib/AST/CommentDumper.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/AST/CommentDumper.cpp b/clang/lib/AST/CommentDumper.cpp
index 7a075a67488..5de5ef544f1 100644
--- a/clang/lib/AST/CommentDumper.cpp
+++ b/clang/lib/AST/CommentDumper.cpp
@@ -181,14 +181,8 @@ void CommentDumper::visitFullComment(const FullComment *C) {
} // unnamed namespace
-void Comment::dump() const {
- CommentDumper D(llvm::errs(), NULL);
- D.dumpSubtree(this);
- llvm::errs() << '\n';
-}
-
-void Comment::dump(SourceManager &SM) const {
- CommentDumper D(llvm::errs(), &SM);
+void Comment::dump(llvm::raw_ostream &OS, SourceManager *SM) const {
+ CommentDumper D(llvm::errs(), SM);
D.dumpSubtree(this);
llvm::errs() << '\n';
}
OpenPOWER on IntegriCloud