aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit462b43cbf61fd38db5f2467175c4a51ac1aba154 (patch)
tree9bc2d6bc21862417ddda16ef92d48a0b369b77c1 /lib/MC/MCParser/AsmParser.cpp
parent3f2d5f60b31fd057c10f77b2e607b23a8c94f6d3 (diff)
downloadexternal_llvm-462b43cbf61fd38db5f2467175c4a51ac1aba154.zip
external_llvm-462b43cbf61fd38db5f2467175c4a51ac1aba154.tar.gz
external_llvm-462b43cbf61fd38db5f2467175c4a51ac1aba154.tar.bz2
remove the dead 'ShowLine' argument from SMDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 0be8f51..a05f767 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/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);
}