[llvm-commits] [llvm] r126787 - /llvm/trunk/include/llvm/Support/SourceMgr.h

Dan Gohman gohman at apple.com
Tue Mar 1 14:11:52 PST 2011


Author: djg
Date: Tue Mar  1 16:11:52 2011
New Revision: 126787

URL: http://llvm.org/viewvc/llvm-project?rev=126787&view=rev
Log:
Remove the showline argument from the SMDiagnostic constructor
which constructs a diagnostic with no line to show.

Modified:
    llvm/trunk/include/llvm/Support/SourceMgr.h

Modified: llvm/trunk/include/llvm/Support/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SourceMgr.h?rev=126787&r1=126786&r2=126787&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SourceMgr.h (original)
+++ llvm/trunk/include/llvm/Support/SourceMgr.h Tue Mar  1 16:11:52 2011
@@ -156,10 +156,9 @@
   // Null diagnostic.
   SMDiagnostic() : SM(0), LineNo(0), ColumnNo(0), ShowLine(0) {}
   // Diagnostic with no location (e.g. file not found, command line arg error).
-  SMDiagnostic(const std::string &filename, const std::string &Msg,
-               bool showline = true)
+  SMDiagnostic(const std::string &filename, const std::string &Msg)
     : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1),
-      Message(Msg), ShowLine(showline) {}
+      Message(Msg), ShowLine(false) {}
   
   // Diagnostic with a location.
   SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN,





More information about the llvm-commits mailing list