Thumb opcodes for thumb calls.

llvm-svn: 114263
This commit is contained in:
Eric Christopher 2010-09-18 02:32:38 +00:00
parent c4f3990f01
commit a6ba082cb6
1 changed files with 5 additions and 1 deletions

View File

@ -1100,7 +1100,11 @@ bool ARMFastISel::ARMEmitLibcall(const Instruction *I, Function *F) {
// Issue the call, BLr9 for darwin, BL otherwise.
MachineInstrBuilder MIB;
unsigned CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
unsigned CallOpc;
if(isThumb)
CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLr9 : ARM::tBL;
else
CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc))
.addGlobalAddress(F, 0, 0);