]> granicus.if.org Git - clang/commitdiff
remove a helper method with only one call site.
authorChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 05:05:28 +0000 (05:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 05:05:28 +0000 (05:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59495 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp
include/clang/Basic/Diagnostic.h

index 4973a42819846b440e6364c009bbe76165f3b03a..4314180c45e752a386dd6abbeb341499f1f93068 100644 (file)
@@ -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;
     }
index 41a87434b0c5ca2cac7938fc7211eac0912487ea..b9bbcb2831f8dbfa516280a01f9a95d39a9502ad 100644 (file)
@@ -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,