diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-18 05:05:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-18 05:05:28 +0000 |
commit | 5917fe1189ee7cbb6f61b804b1f1ab6ef16a94cb (patch) | |
tree | 51eeb479570f8bd50b45363f261292deb4b214e2 | |
parent | 2383b7f6aea2cb2bf2b5bfc0ec730f9354fecbbf (diff) |
remove a helper method with only one call site.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59495 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/clang.cpp | 2 | ||||
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 4973a42819..4314180c45 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1464,7 +1464,7 @@ int main(int argc, char **argv) { // -I- is a deprecated GCC feature, scan for it and reject it. for (unsigned i = 0, e = I_dirs.size(); i != e; ++i) { if (I_dirs[i] == "-") { - Diags.Report(diag::err_pp_I_dash_not_supported); + Diags.Report(FullSourceLoc(), diag::err_pp_I_dash_not_supported); I_dirs.erase(I_dirs.begin()+i); --i; } diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 41a87434b0..b9bbcb2831 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -170,14 +170,6 @@ public: Report(NULL, Pos, DiagID, Strs, NumStrs, Ranges, NumRanges); } - /// Report - Issue the message to the client. DiagID is a member of the - /// diag::kind enum. - void Report(unsigned DiagID, - const std::string **Strs = 0, unsigned NumStrs = 0, - const SourceRange *Ranges = 0, unsigned NumRanges = 0) { - Report(FullSourceLoc(), DiagID, Strs, NumStrs, Ranges, NumRanges); - } - /// Report - Issue the message to the specified client. /// DiagID is a member of the diag::kind enum. void Report(DiagnosticClient* C, FullSourceLoc Pos, unsigned DiagID, |