diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-22 19:40:10 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-22 19:40:10 +0000 |
commit | 2576f136458bda873208399e4c8a5e21ee14b362 (patch) | |
tree | 74d5464ea9de62ce3d026daee453b628347f4fb6 /lib/Target/ARM/ARMISelLowering.cpp | |
parent | 8a67cdc5eb486d5996adec0e745d37da9ef5a1bb (diff) | |
download | llvm-2576f136458bda873208399e4c8a5e21ee14b362.tar.gz llvm-2576f136458bda873208399e4c8a5e21ee14b362.tar.bz2 llvm-2576f136458bda873208399e4c8a5e21ee14b362.tar.xz |
Use bl to call Thumb fuctions directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 0fb7e25550..031cd0a2f5 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -483,7 +483,7 @@ SDOperand ARMTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) { getTargetMachine().getRelocationModel() != Reloc::Static; isARMFunc = !Subtarget->isThumb() || isStub; // Wrap it since tBX takes a register source operand. - if (!Subtarget->hasV5TOps() && Subtarget->isThumb()) + if (isARMFunc && Subtarget->isThumb() && !Subtarget->hasV5TOps()) Callee = DAG.getNode(ARMISD::WrapperCall, MVT::i32, Callee); } |