mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
[SelectionDAG] Pass explicit type to lowerCallOperands. NFC.
Summary: Currently this does not change anything, but change will be used in a later change to StatepointLowering.cpp Reviewers: reames, atrick Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9477 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a17cc3b189
commit
49d19ee888
@ -6433,7 +6433,7 @@ void SelectionDAGBuilder::visitVACopy(const CallInst &I) {
|
||||
std::pair<SDValue, SDValue>
|
||||
SelectionDAGBuilder::lowerCallOperands(ImmutableCallSite CS, unsigned ArgIdx,
|
||||
unsigned NumArgs, SDValue Callee,
|
||||
bool UseVoidTy,
|
||||
Type *ReturnTy,
|
||||
MachineBasicBlock *LandingPad,
|
||||
bool IsPatchPoint) {
|
||||
TargetLowering::ArgListTy Args;
|
||||
@ -6454,10 +6454,9 @@ SelectionDAGBuilder::lowerCallOperands(ImmutableCallSite CS, unsigned ArgIdx,
|
||||
Args.push_back(Entry);
|
||||
}
|
||||
|
||||
Type *retTy = UseVoidTy ? Type::getVoidTy(*DAG.getContext()) : CS->getType();
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
CLI.setDebugLoc(getCurSDLoc()).setChain(getRoot())
|
||||
.setCallee(CS.getCallingConv(), retTy, Callee, std::move(Args), NumArgs)
|
||||
.setCallee(CS.getCallingConv(), ReturnTy, Callee, std::move(Args), NumArgs)
|
||||
.setDiscardResult(CS->use_empty()).setIsPatchPoint(IsPatchPoint);
|
||||
|
||||
return lowerInvokable(CLI, LandingPad);
|
||||
@ -6599,8 +6598,10 @@ void SelectionDAGBuilder::visitPatchpoint(ImmutableCallSite CS,
|
||||
|
||||
// For AnyRegCC the arguments are lowered later on manually.
|
||||
unsigned NumCallArgs = IsAnyRegCC ? 0 : NumArgs;
|
||||
Type *ReturnTy =
|
||||
IsAnyRegCC ? Type::getVoidTy(*DAG.getContext()) : CS->getType();
|
||||
std::pair<SDValue, SDValue> Result =
|
||||
lowerCallOperands(CS, NumMetaOpers, NumCallArgs, Callee, IsAnyRegCC,
|
||||
lowerCallOperands(CS, NumMetaOpers, NumCallArgs, Callee, ReturnTy,
|
||||
LandingPad, true);
|
||||
|
||||
SDNode *CallEnd = Result.second.getNode();
|
||||
|
@ -711,7 +711,7 @@ public:
|
||||
unsigned ArgIdx,
|
||||
unsigned NumArgs,
|
||||
SDValue Callee,
|
||||
bool UseVoidTy = false,
|
||||
Type *ReturnTy,
|
||||
MachineBasicBlock *LandingPad = nullptr,
|
||||
bool IsPatchPoint = false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user