Use bl to call Thumb fuctions directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-01-22 19:40:10 +00:00
parent 8a67cdc5eb
commit 2576f13645

View File

@ -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);
}