Add parseToken and compatriot functions to stitch error checks in
straight linear code. As part of this fix some erronous handling of
directives where the EndOfStatement token either was not checked or
Lexed on termination.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/MC/MCParser/AsmParser.cpp | ||
---|---|---|
2991–2993 ↗ | (On Diff #63839) | I'm surprised the MCParser doesn't have something like LLParser::ParseToken, which consumes the expected token if present and returns an error if not present. Can you add that and use it? |
lib/MC/MCParser/ELFAsmParser.cpp | ||
---|---|---|
634 ↗ | (On Diff #64182) | Yes. I'm planning on doing a cleanup sweep of each of the AsmParser files in subsequent patches. |