[ARM,AArch64] Store source location for values in assembly files
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 16:22:47 +0000 (16:22 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 16:22:47 +0000 (16:22 +0000)
commit1b10e7aa06c507a4bb8c8eef4f117139d14b3864
treed6dfe340dd09a605ad8a28196ccc8226b0174589
parente5484b43294ac41afe46851a066e1699daf5744f
[ARM,AArch64] Store source location for values in assembly files

The MCValue class can store a SMLoc to allow better error messages to be
emitted if an error is detected after parsing. The ARM and AArch64 assembly
parsers were not setting this, so error messages did not have source
information.

Differential Revision: http://reviews.llvm.org/D14645

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/AArch64/error-location.s [new file with mode: 0644]
test/MC/ARM/error-location.s [new file with mode: 0644]