mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
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
This commit is contained in:
parent
6e36c11d2a
commit
1d96185f57
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user