diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-20 20:39:04 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-20 20:39:04 +0000 |
commit | 93b9ecba9bb24d2c9087e8044f76097b3b882011 (patch) | |
tree | ae7c738daa276b7de00f7621e5cab3d644bd3a3e /clang | |
parent | 4cb2e2dc630d4627e6c85eec2e8d00540fb37e39 (diff) | |
download | bcm5719-llvm-93b9ecba9bb24d2c9087e8044f76097b3b882011.tar.gz bcm5719-llvm-93b9ecba9bb24d2c9087e8044f76097b3b882011.zip |
Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.
llvm-svn: 158845
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/AST/ASTContext.h | 2 | ||||
-rw-r--r-- | clang/include/clang/AST/RawCommentList.h | 3 | ||||
-rw-r--r-- | clang/lib/AST/RawCommentList.cpp | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index cc2d98736f7..a3678780f68 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -435,7 +435,7 @@ public: public: void addComment(const RawComment &RC) { - Comments.addComment(RC, *this); + Comments.addComment(RC); } /// \brief Return the Doxygen-style comment attached to a given declaration. diff --git a/clang/include/clang/AST/RawCommentList.h b/clang/include/clang/AST/RawCommentList.h index bf0b616383e..666a3e68594 100644 --- a/clang/include/clang/AST/RawCommentList.h +++ b/clang/include/clang/AST/RawCommentList.h @@ -15,7 +15,6 @@ namespace clang { -class ASTContext; class ASTReader; class RawComment { @@ -143,7 +142,7 @@ public: RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { } - void addComment(const RawComment &RC, ASTContext &Context); + void addComment(const RawComment &RC); ArrayRef<RawComment> getComments() const { return Comments; diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp index 07776779e87..06510294e77 100644 --- a/clang/lib/AST/RawCommentList.cpp +++ b/clang/lib/AST/RawCommentList.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "clang/AST/RawCommentList.h" -#include "clang/AST/ASTContext.h" #include "llvm/ADT/STLExtras.h" using namespace clang; @@ -155,7 +154,7 @@ bool onlyWhitespaceBetweenComments(SourceManager &SM, } } // unnamed namespace -void RawCommentList::addComment(const RawComment &RC, ASTContext &Context) { +void RawCommentList::addComment(const RawComment &RC) { if (RC.isInvalid()) return; |