aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2021-11-09 18:26:29 +0100
committerArd Biesheuvel <ardb@kernel.org>2021-11-09 18:29:30 +0100
commit24772720c54500714e2d48b9109bb62d5867ad95 (patch)
tree5f5568cf13791009a85b73de74580e34001d019d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent22a1aa5a43cbdaf9dde014ba1f120e0f7ca1788b (diff)
downloadllvm-24772720c54500714e2d48b9109bb62d5867ad95.zip
llvm-24772720c54500714e2d48b9109bb62d5867ad95.tar.gz
llvm-24772720c54500714e2d48b9109bb62d5867ad95.tar.bz2
[ARM] reject -mtp=cp15 if target subarch does not support it
Currently, we permit -mtp=cp15 even for targets that don't implement the TLS register. When building for ARMv6 or earlier, this means we emit instructions that will UNDEF at runtime. For Thumb1, passing -mtp=cp15 will trigger an assert in the backend. So let's add some diagnostics to ensure that -mtp=cp15 is only accepted for ARMv6T2 or newer. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D113026
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions