Author: lattner
Date: Fri Jan 30 13:01:41 2009
New Revision: 63409

URL: http://llvm.org/viewvc/llvm-project?rev=63409&view=rev
Log:
wire up -fno-show-source-location option, patch by Alexei Svitkine!

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=63409&r1=63408&r2=63409&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Fri Jan 30 13:01:41 2009
@@ -188,6 +188,11 @@
              llvm::cl::desc("Do not include column number on diagnostics"));
 
 static llvm::cl::opt<bool>
+NoShowLocation("fno-show-source-location",
+               llvm::cl::desc("Do not include source location information with"
+                              " diagnostics"));
+
+static llvm::cl::opt<bool>
 NoCaretDiagnostics("fno-caret-diagnostics",
                    llvm::cl::desc("Do not include source line and caret with"
                                   " diagnostics"));
@@ -1530,7 +1535,8 @@
     // Print diagnostics to stderr by default.
     TextDiagClient = new TextDiagnosticPrinter(llvm::errs(),
                                                !NoShowColumn,
-                                               !NoCaretDiagnostics);
+                                               !NoCaretDiagnostics,
+                                               !NoShowLocation);
   } else {
     // When checking diagnostics, just buffer them up.
     TextDiagClient = new TextDiagnosticBuffer();


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to