[cfe-commits] [PATCH] Dump comments in -ast-dump

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 9 05:18:56 PST 2013


  Makes sense for me.


================
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);
----------------
Did you find a way around this?

Did you check that Comment::dump() can be called from the debugger?



http://llvm-reviews.chandlerc.com/D269



More information about the cfe-commits mailing list