summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreSelectionDAGInfo.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-17 21:50:17 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-17 21:50:17 +0000
commit82b1114fef542b98f4744d3d1a7e8562d1c962a5 (patch)
tree1098e2b121c3cbfde666ca29637e19c7f1860ba9 /lib/Target/XCore/XCoreSelectionDAGInfo.cpp
parenta2b20f975f73bcf1dd35d404a7f6c4f9d71b8273 (diff)
downloadllvm-82b1114fef542b98f4744d3d1a7e8562d1c962a5.tar.gz
llvm-82b1114fef542b98f4744d3d1a7e8562d1c962a5.tar.bz2
llvm-82b1114fef542b98f4744d3d1a7e8562d1c962a5.tar.xz
Target: remove old constructors for CallLoweringInfo
This is mostly a mechanical change changing all the call sites to the newer chained-function construction pattern. This removes the horrible 15-parameter constructor for the CallLoweringInfo in favour of setting properties of the call via chained functions. No functional change beyond the removal of the old constructors are intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreSelectionDAGInfo.cpp')
-rw-r--r--lib/Target/XCore/XCoreSelectionDAGInfo.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/Target/XCore/XCoreSelectionDAGInfo.cpp b/lib/Target/XCore/XCoreSelectionDAGInfo.cpp
index adbd351db5..5a6bbe7b1d 100644
--- a/lib/Target/XCore/XCoreSelectionDAGInfo.cpp
+++ b/lib/Target/XCore/XCoreSelectionDAGInfo.cpp
@@ -42,13 +42,15 @@ EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl, SDValue Chain,
Entry.Node = Src; Args.push_back(Entry);
Entry.Node = Size; Args.push_back(Entry);
- TargetLowering::CallLoweringInfo
- CLI(Chain, Type::getVoidTy(*DAG.getContext()), false, false, false, false,
- 0, TLI.getLibcallCallingConv(RTLIB::MEMCPY), /*isTailCall=*/false,
- /*doesNotRet=*/false, /*isReturnValueUsed=*/false,
- DAG.getExternalSymbol("__memcpy_4", TLI.getPointerTy()), Args, DAG, dl);
- std::pair<SDValue,SDValue> CallResult =
- TLI.LowerCallTo(CLI);
+ TargetLowering::CallLoweringInfo CLI(DAG);
+ CLI.setDebugLoc(dl).setChain(Chain)
+ .setCallee(TLI.getLibcallCallingConv(RTLIB::MEMCPY),
+ Type::getVoidTy(*DAG.getContext()),
+ DAG.getExternalSymbol("__memcpy_4", TLI.getPointerTy()),
+ &Args, 0)
+ .setDiscardResult();
+
+ std::pair<SDValue,SDValue> CallResult = TLI.LowerCallTo(CLI);
return CallResult.second;
}