summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/Driver/clang.cpp2
-rw-r--r--clang/include/clang/Basic/Diagnostic.h8
2 files changed, 1 insertions, 9 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 4973a428198..4314180c45e 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/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/clang/include/clang/Basic/Diagnostic.h b/clang/include/clang/Basic/Diagnostic.h
index 41a87434b0c..b9bbcb2831f 100644
--- a/clang/include/clang/Basic/Diagnostic.h
+++ b/clang/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,
OpenPOWER on IntegriCloud