Delete MipsFunctionInfo::NextStackOffset. No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2012-11-07 19:04:26 +00:00
parent 162d91c1e0
commit 7085221a59
2 changed files with 6 additions and 10 deletions

View File

@ -2674,9 +2674,9 @@ IsEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
if (MipsCCInfo.hasByValArg() || FI.hasByvalArg())
return false;
// Return true if the callee's next stack offset is no larger than the
// Return true if the callee's argument area is no larger than the
// caller's.
return NextStackOffset <= FI.nextStackOffset();
return NextStackOffset <= FI.getIncomingArgSize();
}
SDValue
@ -3027,7 +3027,6 @@ 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();

View File

@ -47,11 +47,10 @@ class MipsFunctionInfo : public MachineFunctionInfo {
/// VarArgsFrameIndex - FrameIndex for start of varargs area.
int VarArgsFrameIndex;
// Formal argument information obtained during call to LowerFormalArguments.
unsigned NextStackOffset;
/// True if function has a byval argument.
bool HasByvalArg;
// Size of incoming argument area.
/// Size of incoming argument area.
unsigned IncomingArgSize;
public:
@ -72,15 +71,13 @@ public:
int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
unsigned nextStackOffset() const { return NextStackOffset; }
bool hasByvalArg() const { return HasByvalArg; }
void setFormalArgInfo(unsigned Offset, bool HasByval) {
NextStackOffset = Offset;
void setFormalArgInfo(unsigned Size, bool HasByval) {
IncomingArgSize = Size;
HasByvalArg = HasByval;
}
unsigned getIncomingArgSize() const { return IncomingArgSize; }
void setIncomingArgSize(unsigned S) { IncomingArgSize = S; }
};
} // end of namespace llvm