mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
MC/AsmParser: Use Error() instead of calling PrintMessage() directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f21e4e9326
commit
275ce39794
@ -249,7 +249,7 @@ const AsmToken &AsmParser::Lex() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tok->is(AsmToken::Error))
|
if (tok->is(AsmToken::Error))
|
||||||
PrintMessage(Lexer.getErrLoc(), Lexer.getErr(), "error");
|
Error(Lexer.getErrLoc(), Lexer.getErr());
|
||||||
|
|
||||||
return *tok;
|
return *tok;
|
||||||
}
|
}
|
||||||
@ -1395,9 +1395,7 @@ bool AsmParser::ParseDirectiveInclude() {
|
|||||||
// Attempt to switch the lexer to the included file before consuming the end
|
// Attempt to switch the lexer to the included file before consuming the end
|
||||||
// of statement to avoid losing it when we switch.
|
// of statement to avoid losing it when we switch.
|
||||||
if (EnterIncludeFile(Filename)) {
|
if (EnterIncludeFile(Filename)) {
|
||||||
PrintMessage(IncludeLoc,
|
Error(IncludeLoc, "Could not find include file '" + Filename + "'");
|
||||||
"Could not find include file '" + Filename + "'",
|
|
||||||
"error");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user