mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Thumb opcodes for thumb calls.
llvm-svn: 114263
This commit is contained in:
parent
3555832020
commit
0c5e912e21
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user