aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/SourceMgr.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-03-01 22:11:52 +0000
committerDan Gohman <gohman@apple.com>2011-03-01 22:11:52 +0000
commitd50f3f8731821bb9177bcaa44a0c18f7a26b3d80 (patch)
treebdadee17352f8394f160d86dad8fb5a92e30cb5a /include/llvm/Support/SourceMgr.h
parentb0cdabb6c2413dff2a8d68b30ff31fd5920c4b37 (diff)
Remove the showline argument from the SMDiagnostic constructor
which constructs a diagnostic with no line to show. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r--include/llvm/Support/SourceMgr.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index 26a92bea76..2a712e44bd 100644
--- a/include/llvm/Support/SourceMgr.h
+++ b/include/llvm/Support/SourceMgr.h
@@ -156,10 +156,9 @@ public:
// 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,