|
14 | 14 | #include "MCTargetDesc/PPCMCTargetDesc.h" |
15 | 15 | #include "MCTargetDesc/PPCPredicates.h" |
16 | 16 | #include "PPC.h" |
17 | | -#include "PPCCCState.h" |
18 | 17 | #include "PPCCallingConv.h" |
19 | 18 | #include "PPCFrameLowering.h" |
20 | 19 | #include "PPCInstrInfo.h" |
@@ -4330,17 +4329,13 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4( |
4330 | 4329 |
|
4331 | 4330 | // Assign locations to all of the incoming arguments. |
4332 | 4331 | SmallVector<CCValAssign, 16> ArgLocs; |
4333 | | - PPCCCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs, |
| 4332 | + CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs, |
4334 | 4333 | *DAG.getContext()); |
4335 | 4334 |
|
4336 | 4335 | // Reserve space for the linkage area on the stack. |
4337 | 4336 | unsigned LinkageSize = Subtarget.getFrameLowering()->getLinkageSize(); |
4338 | 4337 | CCInfo.AllocateStack(LinkageSize, PtrAlign); |
4339 | | - if (useSoftFloat()) |
4340 | | - CCInfo.PreAnalyzeFormalArguments(Ins); |
4341 | | - |
4342 | 4338 | CCInfo.AnalyzeFormalArguments(Ins, CC_PPC32_SVR4); |
4343 | | - CCInfo.clearWasPPCF128(); |
4344 | 4339 |
|
4345 | 4340 | for (unsigned i = 0, e = ArgLocs.size(); i != e; ++i) { |
4346 | 4341 | CCValAssign &VA = ArgLocs[i]; |
@@ -6062,13 +6057,11 @@ SDValue PPCTargetLowering::LowerCall_32SVR4( |
6062 | 6057 |
|
6063 | 6058 | // Assign locations to all of the outgoing arguments. |
6064 | 6059 | SmallVector<CCValAssign, 16> ArgLocs; |
6065 | | - PPCCCState CCInfo(CallConv, IsVarArg, MF, ArgLocs, *DAG.getContext()); |
| 6060 | + CCState CCInfo(CallConv, IsVarArg, MF, ArgLocs, *DAG.getContext()); |
6066 | 6061 |
|
6067 | 6062 | // Reserve space for the linkage area on the stack. |
6068 | 6063 | CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(), |
6069 | 6064 | PtrAlign); |
6070 | | - if (useSoftFloat()) |
6071 | | - CCInfo.PreAnalyzeCallOperands(Outs); |
6072 | 6065 |
|
6073 | 6066 | if (IsVarArg) { |
6074 | 6067 | // Handle fixed and variable vector arguments differently. |
@@ -6101,7 +6094,6 @@ SDValue PPCTargetLowering::LowerCall_32SVR4( |
6101 | 6094 | // All arguments are treated the same. |
6102 | 6095 | CCInfo.AnalyzeCallOperands(Outs, CC_PPC32_SVR4); |
6103 | 6096 | } |
6104 | | - CCInfo.clearWasPPCF128(); |
6105 | 6097 |
|
6106 | 6098 | // Assign locations to all of the outgoing aggregate by value arguments. |
6107 | 6099 | SmallVector<CCValAssign, 16> ByValArgLocs; |
|
0 commit comments