mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 22:28:27 +00:00
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
This commit is contained in:
@@ -2028,13 +2028,10 @@ SparcTargetLowering::LowerF128Op(SDValue Op, SelectionDAG &DAG,
|
||||
for (unsigned i = 0, e = numArgs; i != e; ++i) {
|
||||
Chain = LowerF128_LibCallArg(Chain, Args, Op.getOperand(i), SDLoc(Op), DAG);
|
||||
}
|
||||
TargetLowering::
|
||||
CallLoweringInfo CLI(Chain,
|
||||
RetTyABI,
|
||||
false, false, false, false,
|
||||
0, CallingConv::C,
|
||||
false, false, true,
|
||||
Callee, Args, DAG, SDLoc(Op));
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
CLI.setDebugLoc(SDLoc(Op)).setChain(Chain)
|
||||
.setCallee(CallingConv::C, RetTyABI, Callee, &Args, 0);
|
||||
|
||||
std::pair<SDValue, SDValue> CallInfo = LowerCallTo(CLI);
|
||||
|
||||
// chain is in second result.
|
||||
@@ -2087,13 +2084,9 @@ SparcTargetLowering::LowerF128Compare(SDValue LHS, SDValue RHS,
|
||||
Chain = LowerF128_LibCallArg(Chain, Args, LHS, DL, DAG);
|
||||
Chain = LowerF128_LibCallArg(Chain, Args, RHS, DL, DAG);
|
||||
|
||||
TargetLowering::
|
||||
CallLoweringInfo CLI(Chain,
|
||||
RetTy,
|
||||
false, false, false, false,
|
||||
0, CallingConv::C,
|
||||
false, false, true,
|
||||
Callee, Args, DAG, DL);
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
CLI.setDebugLoc(DL).setChain(Chain)
|
||||
.setCallee(CallingConv::C, RetTy, Callee, &Args, 0);
|
||||
|
||||
std::pair<SDValue, SDValue> CallInfo = LowerCallTo(CLI);
|
||||
|
||||
|
Reference in New Issue
Block a user