commit | 34e53140c2cc02ce4c9d060e48302576d3962e1c | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Sep 08 05:10:46 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Sep 08 05:10:46 2010 +0000 |
tree | 2935f144ee34b31941cc1ead2b3916111afb1a3f | |
parent | 9607c40601b345c21af9de97ec03e124179efd24 [diff] [blame] |
change the MC "ParseInstruction" interface to make it the implementation's job to check for and lex the EndOfStatement marker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113347 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index f2099d2..f44470b 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -737,6 +737,11 @@ Operands.push_back(Op.take()); } } + + if (getLexer().isNot(AsmToken::EndOfStatement)) + return TokError("unexpected token in argument list"); + Parser.Lex(); // Consume the EndOfStatement + return false; }