llvm.org GIT mirror llvm / 186ffac
Improve ARM assembly parser diagnostic for unexpected tokens. Consider: mov r8, r11 fred Previously, we issued the not very informative: x.s:6:1: error: unexpected token in argument list ^ Now we generate: x.s:5:14: error: unexpected token in argument list mov r8, r11 fred ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141380 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
36163616 }
36183618 if (getLexer().isNot(AsmToken::EndOfStatement)) {
3619 SMLoc Loc = getLexer().getLoc();
36193620 Parser.EatToEndOfStatement();
3620 return TokError("unexpected token in argument list");
3621 return Error(Loc, "unexpected token in argument list");
36213622 }
36233624 Parser.Lex(); // Consume the EndOfStatement