summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-10-16 05:47:55 +0000
committerChris Lattner <sabre@nondot.org>2011-10-16 05:47:55 +0000
commit7284526aff2f314c0fe6650d174c70f0b0c63c4f (patch)
tree7f83a6fe9ca6213d0d3603e0585c9915af38ddad /llvm/lib/MC/MCParser/AsmParser.cpp
parent03b80a402745ba2ba3b23d9753a19d995ce40671 (diff)
downloadbcm5719-llvm-7284526aff2f314c0fe6650d174c70f0b0c63c4f.tar.gz
bcm5719-llvm-7284526aff2f314c0fe6650d174c70f0b0c63c4f.zip
remove the dead 'ShowLine' argument from SMDiagnostic.
llvm-svn: 142108
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 0be8f51f0c6..a05f767328c 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -172,9 +172,8 @@ private:
void PrintMacroInstantiations();
void PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg,
- ArrayRef<SMRange> Ranges = ArrayRef<SMRange>(),
- bool ShowLine = true) const {
- SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges, ShowLine);
+ ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) const {
+ SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges);
}
static void DiagHandler(const SMDiagnostic &Diag, void *Context);
@@ -1306,8 +1305,7 @@ void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
SMDiagnostic NewDiag(*Diag.getSourceMgr(), Diag.getLoc(),
Filename, LineNo, Diag.getColumnNo(),
Diag.getKind(), Diag.getMessage(),
- Diag.getLineContents(),
- Diag.getRanges(), Diag.getShowLine());
+ Diag.getLineContents(), Diag.getRanges());
NewDiag.print(0, OS);
}
OpenPOWER on IntegriCloud