[ARM,AArch64] Store source location of asm constant pool entries
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 16:25:47 +0000 (16:25 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 16:25:47 +0000 (16:25 +0000)
commit20bb042d74a95970b4942f38cb2606a84fc279f7
tree8dc5f1bda5c2bfaaa9dbb3b5d6347a338e9580f2
parent1b10e7aa06c507a4bb8c8eef4f117139d14b3864
[ARM,AArch64] Store source location of asm constant pool entries

Storing the source location of the expression that created a constant pool
entry allows us to emit better error messages if we later discover that the
expression cannot be represented by a relocation.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253220 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/ConstantPools.h
include/llvm/MC/MCStreamer.h
lib/MC/ConstantPools.cpp
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
test/MC/AArch64/error-location-ldr-pseudo.s [new file with mode: 0644]
test/MC/ARM/error-location-ldr-pseudo.s [new file with mode: 0644]