[PATCH] D22312: [MC] Cleanup Error Handling in AsmParser

Nirav Dave via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 13:33:13 PDT 2016


niravd marked an inline comment as done.

================
Comment at: lib/MC/MCParser/ELFAsmParser.cpp:634
@@ -631,1 +633,3 @@
 
+  if (getLexer().isNot(AsmToken::EndOfStatement))
+    return TokError("unexpected token in '.ident' directive");
----------------
rnk wrote:
> This can be parseToken, right?
Yes. I'm planning on doing a cleanup sweep of each of the AsmParser files in subsequent patches.


https://reviews.llvm.org/D22312





More information about the llvm-commits mailing list