summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-03-16 20:49:31 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-03-16 20:49:31 +0000
commit19c61598337befbdd275d23cb7cf450e012da314 (patch)
tree164b4560832c761758227166e5fa8bc0af48f4ed /llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
parentaa0cae6208c67da94ee9efbd16e374df0d638080 (diff)
downloadbcm5719-llvm-19c61598337befbdd275d23cb7cf450e012da314.tar.gz
bcm5719-llvm-19c61598337befbdd275d23cb7cf450e012da314.zip
[SelectionDAG] Extract out populateCallLoweringInfo; NFC
SelectionDAGBuilder::populateCallLoweringInfo is now used instead of SelectionDAGBuilder::lowerCallOperands. The populateCallLoweringInfo interface is more composable in face of design changes like http://reviews.llvm.org/D18106 llvm-svn: 263663
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
index 9d20d0a26f3..ff0136816c4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
@@ -311,11 +311,13 @@ lowerCallFromStatepoint(ImmutableStatepoint ISP, const BasicBlock *EHPadBB,
Type *DefTy = ISP.getActualReturnType();
bool HasDef = !DefTy->isVoidTy();
+ TargetLowering::CallLoweringInfo CLI(Builder.DAG);
+ Builder.populateCallLoweringInfo(
+ CLI, ISP.getCallSite(), ImmutableStatepoint::CallArgsBeginPos,
+ ISP.getNumCallArgs(), ActualCallee, DefTy, false);
+
SDValue ReturnValue, CallEndVal;
- std::tie(ReturnValue, CallEndVal) = Builder.lowerCallOperands(
- ISP.getCallSite(), ImmutableStatepoint::CallArgsBeginPos,
- ISP.getNumCallArgs(), ActualCallee, DefTy, EHPadBB,
- false /* IsPatchPoint */);
+ std::tie(ReturnValue, CallEndVal) = Builder.lowerInvokable(CLI, EHPadBB);
SDNode *CallEnd = CallEndVal.getNode();
OpenPOWER on IntegriCloud