summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-18 02:32:38 +0000
committerEric Christopher <echristo@apple.com>2010-09-18 02:32:38 +0000
commita6ba082cb63af874308938bda342b2e2a5737eaf (patch)
tree64eb45382eda511ce703df6d6e8d60c5f6eebd27 /llvm/lib/Target
parentc4f3990f01e7d6e980d46f39100b3d7dcf124438 (diff)
downloadbcm5719-llvm-a6ba082cb63af874308938bda342b2e2a5737eaf.tar.gz
bcm5719-llvm-a6ba082cb63af874308938bda342b2e2a5737eaf.zip
Thumb opcodes for thumb calls.
llvm-svn: 114263
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 5701542d8bc..d199e732746 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud