llvm-project/llvm/lib/Target/WebAssembly/AsmParser
Alex Bradbury 61d5fa6b62 [WebAssembly] Fix error location for parsed symbol/label operands
The previous code didn't take account for the fact that parseExpression
my lex additional tokens - because of this, it's necessary to record the
location of the current token ahead of the call. This patch additionally
makes use of the fact parseExpression will set its End parameter to the
end of the expression.

Although this fix could be added independently of D122127, I've opted to
make it a child patch in order to ensure the change has some test
coverage.

Differential Revision: https://reviews.llvm.org/D122128
2022-03-23 08:53:05 +00:00
..
CMakeLists.txt [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
WebAssemblyAsmParser.cpp [WebAssembly] Fix error location for parsed symbol/label operands 2022-03-23 08:53:05 +00:00
WebAssemblyAsmTypeCheck.cpp [WebAssembly] Use location of operand for operand-based type check errors 2022-03-23 08:51:15 +00:00
WebAssemblyAsmTypeCheck.h [WebAssembly] Use location of operand for operand-based type check errors 2022-03-23 08:51:15 +00:00