OSDN Git Service

[AMDGPU][MC] Restore old error position for "too few operands"
authorScott Linder <Scott.Linder@amd.com>
Wed, 9 Dec 2020 20:44:20 +0000 (20:44 +0000)
committerScott Linder <Scott.Linder@amd.com>
Wed, 9 Dec 2020 21:09:47 +0000 (21:09 +0000)
commitf5f4b8b60fc0931440c4f2549fbff0965c868d2c
treeec5b69c2792f948eb27b8e194a92418a47ab9e6c
parenta3eb2fb247686af0216337687e921118710b56f3
[AMDGPU][MC] Restore old error position for "too few operands"

Revert part of https://reviews.llvm.org/D92084 to make it simpler to
start consuming the EndOfStatement token within AMDGPU's
ParseInstruction in a future patch. This also brings us back to what
every other target currently does.

A future change to move the position back to the end of the statement
would likely need to audit all of the AMDGPUOperand SMLoc ranges, and
determine the SMLoc for the last character of the last operand.

Reviewed By: dp

Differential Revision: https://reviews.llvm.org/D92960
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/exp-err.s
llvm/test/MC/AMDGPU/gfx10_err_pos.s