diff options
author | Eric Christopher <echristo@apple.com> | 2010-09-18 02:32:38 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-09-18 02:32:38 +0000 |
commit | c109556a0a7f0dca78f60967c3560fcaa27097a0 (patch) | |
tree | 6b6a19ee22fbfacc83b6bcf064ee30eb17b70394 | |
parent | 3f42dba88f007b40fd0d23dc0878c0d3b044af25 (diff) |
Thumb opcodes for thumb calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114263 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 5701542d8b..d199e73274 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -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); |