If the use_thumb is set, pass llvm::Triple::thumb to the InstructionLLVM.ctor() unconditionally.

Otherwise, pass m_arch.GetMachine().

Followup patch for rdar://problem/9170971.

llvm-svn: 131549
This commit is contained in:
Johnny Chen 2011-05-18 18:22:16 +00:00
parent 5c810ce4a3
commit 5bee94ecab
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ DisassemblerLLVM::DecodeInstructions
InstructionSP inst_sp (new InstructionLLVM (inst_addr,
inst_address_class,
use_thumb ? m_disassembler_thumb : m_disassembler,
m_arch.GetMachine()));
use_thumb ? llvm::Triple::thumb : m_arch.GetMachine()));
size_t inst_byte_size = inst_sp->Decode (*this, data, data_offset);