diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-01-14 14:07:11 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-01-14 14:07:11 +0000 |
commit | acd356e18ecb8213d65f1454bb3c1bb4f6892bab (patch) | |
tree | e60621df998793576e8700640002b23d8992310f /lib/AST/Comment.cpp | |
parent | fe1d594c3912f88f54786a6a9380c4359eb61b23 (diff) |
Dump comments in -ast-dump.
http://llvm-reviews.chandlerc.com/D269
"Added dumping of declaration comments in ASTDumper. This required moving the
comment dumping code from CommentDumper so that the indentation is correct."
Patch by Philip Craig!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r-- | lib/AST/Comment.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp index 361f8ac61c..ea1a3f737a 100644 --- a/lib/AST/Comment.cpp +++ b/lib/AST/Comment.cpp @@ -32,20 +32,6 @@ const char *Comment::getCommentKindName() const { llvm_unreachable("Unknown comment kind!"); } -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); -} - -void Comment::dump(const ASTContext &Context) const { - dump(llvm::errs(), &Context.getCommentCommandTraits(), - &Context.getSourceManager()); -} - namespace { struct good {}; struct bad {}; |