diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2021-11-09 18:26:29 +0100 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2021-11-09 18:29:30 +0100 |
commit | 24772720c54500714e2d48b9109bb62d5867ad95 (patch) | |
tree | 5f5568cf13791009a85b73de74580e34001d019d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 22a1aa5a43cbdaf9dde014ba1f120e0f7ca1788b (diff) | |
download | llvm-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