diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-18 08:58:41 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-18 08:58:41 +0000 |
commit | 7864b9ea0c6c8fc3ac92f042b769e89d01c42f92 (patch) | |
tree | 6c212fa0f760bd3d29c58fc460b11e8abcae4c12 /clang/lib/Analysis | |
parent | 4c76dbc758e675995e2a92d5b5de23986a1d72df (diff) | |
download | bcm5719-llvm-7864b9ea0c6c8fc3ac92f042b769e89d01c42f92.tar.gz bcm5719-llvm-7864b9ea0c6c8fc3ac92f042b769e89d01c42f92.zip |
Remove unused parameter BugReporter due to previous patch.
llvm-svn: 79328
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 8 | ||||
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 6 |
2 files changed, 5 insertions, 9 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 745e90c38e2..2e2665c1738 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -1231,7 +1231,7 @@ BugReport::getEndPath(BugReporterContext& BRC, return NULL; const SourceRange *Beg, *End; - getRanges(BRC.getBugReporter(), Beg, End); + getRanges(Beg, End); PathDiagnosticLocation L(S, BRC.getSourceManager()); // Only add the statement itself as a range if we didn't specify any @@ -1245,9 +1245,7 @@ BugReport::getEndPath(BugReporterContext& BRC, return P; } -void BugReport::getRanges(BugReporter& BR, const SourceRange*& beg, - const SourceRange*& end) { - +void BugReport::getRanges(const SourceRange*& beg, const SourceRange*& end) { if (const Expr* E = dyn_cast_or_null<Expr>(getStmt())) { R = E->getSourceRange(); assert(R.isValid()); @@ -1657,7 +1655,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) { // Emit a summary diagnostic to the regular Diagnostics engine. const SourceRange *Beg = 0, *End = 0; - R.getRanges(*this, Beg, End); + R.getRanges(Beg, End); Diagnostic& Diag = getDiagnostic(); FullSourceLoc L(R.getLocation(), getSourceManager()); unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning, diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 683be27cb20..c441e0e2420 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -2140,11 +2140,9 @@ namespace { return (const CFRefBug&) RangedBugReport::getBugType(); } - virtual void getRanges(BugReporter& BR, const SourceRange*& beg, - const SourceRange*& end) { - + virtual void getRanges(const SourceRange*& beg, const SourceRange*& end) { if (!getBugType().isLeak()) - RangedBugReport::getRanges(BR, beg, end); + RangedBugReport::getRanges(beg, end); else beg = end = 0; } |