From ebc17b5b8727c0efc19680d39a554c46f6df76fe Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 14 Jan 2013 14:07:11 +0000 Subject: 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! llvm-svn: 172409 --- clang/lib/AST/Comment.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'clang/lib/AST/Comment.cpp') diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 361f8ac61c2..ea1a3f737af 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/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 {}; -- cgit v1.2.3