1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Use bl to call Thumb fuctions directly.

llvm-svn: 33433
This commit is contained in:
Evan Cheng 2007-01-22 19:40:10 +00:00
parent fd911b3b10
commit 30ef170ddf

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