mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Thumb opcodes for thumb calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f42dba88f
commit
c109556a0a
@ -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