mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 06:14:42 +00:00
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:
parent
8a67cdc5eb
commit
2576f13645
@ -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…
x
Reference in New Issue
Block a user