mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Remove the showline argument from the SMDiagnostic constructor
which constructs a diagnostic with no line to show. llvm-svn: 126787
This commit is contained in:
parent
bf282415a2
commit
ec55e3d750
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user