diff options
author | Sean Silva <chisophugis@gmail.com> | 2017-02-28 03:00:48 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2017-02-28 03:00:48 +0000 |
commit | 1d96185f572fef2e2d2b1d4091c6bdd27eb1695a (patch) | |
tree | a4cecabaaada537a9f07e06d30ea5690ea1e2013 | |
parent | 6e36c11d2ae451ea624a02f65c2f872e8ee7e980 (diff) | |
download | bcm5719-llvm-1d96185f572fef2e2d2b1d4091c6bdd27eb1695a.tar.gz bcm5719-llvm-1d96185f572fef2e2d2b1d4091c6bdd27eb1695a.zip |
Add Triple::thumb to getBitcodeMachineKind
We really need to find a way to get this info from a single point of
truth in the LLVM backend, but it seems that the EM_* constants are
buried deep inside the constructors of the MCAsmBackend's.
For now, just fill in entries as we run into cases. AFAIK these mappings
are largely immutable, so we get a 75% discount on the technical debt
(code is duplicated, but little chance of divergence).
llvm-svn: 296429
-rw-r--r-- | lld/ELF/InputFiles.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 6f1b75ba3be..1ec5394d8a8 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -744,6 +744,7 @@ static uint8_t getBitcodeMachineKind(MemoryBufferRef MB) { case Triple::aarch64: return EM_AARCH64; case Triple::arm: + case Triple::thumb: return EM_ARM; case Triple::mips: case Triple::mipsel: |