mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Changed the AsmParser to handle error messages itself
rather than passing them off to the AsmLexer to handle. This means the AsmLexer no longer requires a SourceMgr to do error handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -141,7 +141,7 @@ static int AsLexInput(const char *ProgName) {
|
||||
while (Lexer.Lex().isNot(AsmToken::Eof)) {
|
||||
switch (Lexer.getKind()) {
|
||||
default:
|
||||
Lexer.PrintMessage(Lexer.getLoc(), "unknown token", "warning");
|
||||
SrcMgr.PrintMessage(Lexer.getLoc(), "unknown token", "warning");
|
||||
Error = true;
|
||||
break;
|
||||
case AsmToken::Error:
|
||||
|
Reference in New Issue
Block a user