From 19c61598337befbdd275d23cb7cf450e012da314 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 16 Mar 2016 20:49:31 +0000 Subject: [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 --- llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp') 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(); -- cgit v1.2.3