================
Comment at: lib/AST/Comment.cpp:36-40
@@ -35,7 @@
-void Comment::dump() const {
- // It is important that Comment::dump() is defined in a different TU than
- // Comment::dump(raw_ostream, SourceManager). If both functions were defined
- // in CommentDumper.cpp, that object file would be removed by linker because
- // none of its functions are referenced by other object files, despite the
- // LLVM_ATTRIBUTE_USED.
- dump(llvm::errs(), NULL, NULL);
----------------
Dmitri Gribenko wrote:
> Did you find a way around this?
>
> Did you check that Comment::dump() can be called from the debugger?
>
This is no longer a problem because there are calls into the ASTDumper TU
(specifically by the -ast-dump code).
I have tested calling Comment::dump() within gdb.
http://llvm-reviews.chandlerc.com/D269
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits