diff options
| author | Dan Gohman <gohman@apple.com> | 2011-03-01 22:11:52 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2011-03-01 22:11:52 +0000 |
| commit | 1a8a741747a709812182297f66031219db7ba3ac (patch) | |
| tree | 412a6223d91e1b610051d4f12ebf1bc4da480b5a | |
| parent | d0e098db9cc47ce8d10716a4ba3b77bcc62d5122 (diff) | |
| download | bcm5719-llvm-1a8a741747a709812182297f66031219db7ba3ac.tar.gz bcm5719-llvm-1a8a741747a709812182297f66031219db7ba3ac.zip | |
Remove the showline argument from the SMDiagnostic constructor
which constructs a diagnostic with no line to show.
llvm-svn: 126787
| -rw-r--r-- | llvm/include/llvm/Support/SourceMgr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h index 26a92bea765..2a712e44bd1 100644 --- a/llvm/include/llvm/Support/SourceMgr.h +++ b/llvm/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, |

