ARM: diagnose invalid local fixups on Thumb1
authorTim Northover <tnorthover@apple.com>
Fri, 2 Oct 2015 18:07:18 +0000 (18:07 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 2 Oct 2015 18:07:18 +0000 (18:07 +0000)
commit90161a29d9352d5a78f714ced1c5fbbb7a92987f
tree1ac6f6e264c3714ee31afb203dd6b9b01d310fee
parent6e8613fb75068a1d91663e5362e974bfebbff721
ARM: diagnose invalid local fixups on Thumb1

We previously stopped producing Thumb2 relaxations when they weren't supported,
but only diagnosed the case where an actual relocation was produced. We should
also tell people if local symbols aren't going to work rather than silently
overflowing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h
test/MC/ARM/big-endian-thumb2-fixup.s
test/MC/ARM/thumb1-relax-adr-local.s [new file with mode: 0644]
test/MC/ARM/thumb1-relax-bcc-local.s [new file with mode: 0644]
test/MC/ARM/thumb1-relax-br-local.s [new file with mode: 0644]
test/MC/ARM/thumb1-relax-ldrlit-local-behind.s [new file with mode: 0644]
test/MC/ARM/thumb1-relax-ldrlit-local-misaligned.s [new file with mode: 0644]
test/MC/ARM/thumb1-relax-ldrlit-local-range.s [new file with mode: 0644]