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:
parent
fd911b3b10
commit
30ef170ddf
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user