aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-12-09 16:29:39 +0000
committerWill Newton <will.newton@linaro.org>2014-12-09 16:29:39 +0000
commit4c81bb7e3f79930493400279226c0aac5e778b4f (patch)
tree13712980844f93e5514036ccc118b85dcb77bc1f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent25a7e0a89f8ba1f21a023580e0514dc018ef025c (diff)
downloadllvm-4c81bb7e3f79930493400279226c0aac5e778b4f.zip
llvm-4c81bb7e3f79930493400279226c0aac5e778b4f.tar.gz
llvm-4c81bb7e3f79930493400279226c0aac5e778b4f.tar.bz2
ELF: Add a standard method for unknown relocation errors
At present each TargetRelocationHandler generates a pretty similar error string and calls llvm_unreachable() when encountering an unknown relocation. This is not ideal for two reasons: 1. llvm_unreachable disappears in release builds but we still want to know if we encountered a relocation we couldn't handle in release builds. 2. Duplication is bad - there is no need to have a per-architecture error message. This change adds a test for AArch64 to test whether or not the error message actually works. The other architectures have not been tested but they compile and check-lld passes. llvm-svn: 223782
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions