mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[mips] Add member field MipsFunctionInfo::IncomingArgSize which holds the size
of the incoming argument area. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3027,6 +3027,7 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
MipsCCInfo.analyzeFormalArguments(Ins);
|
||||
MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(),
|
||||
MipsCCInfo.hasByValArg());
|
||||
MipsFI->setIncomingArgSize(CCInfo.getNextStackOffset());
|
||||
|
||||
Function::const_arg_iterator FuncArg =
|
||||
DAG.getMachineFunction().getFunction()->arg_begin();
|
||||
|
@@ -51,6 +51,9 @@ class MipsFunctionInfo : public MachineFunctionInfo {
|
||||
unsigned NextStackOffset;
|
||||
bool HasByvalArg;
|
||||
|
||||
// Size of incoming argument area.
|
||||
unsigned IncomingArgSize;
|
||||
|
||||
public:
|
||||
MipsFunctionInfo(MachineFunction& MF)
|
||||
: MF(MF), SRetReturnReg(0), GlobalBaseReg(0), Mips16SPAliasReg(0),
|
||||
@@ -75,6 +78,9 @@ public:
|
||||
NextStackOffset = Offset;
|
||||
HasByvalArg = HasByval;
|
||||
}
|
||||
|
||||
unsigned getIncomingArgSize() const { return IncomingArgSize; }
|
||||
void setIncomingArgSize(unsigned S) { IncomingArgSize = S; }
|
||||
};
|
||||
|
||||
} // end of namespace llvm
|
||||
|
Reference in New Issue
Block a user