Define functions that get/set maximum call frame size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131752 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h
index c4d2cfe..3f6b670 100644
--- a/lib/Target/Mips/MipsMachineFunction.h
+++ b/lib/Target/Mips/MipsMachineFunction.h
@@ -84,13 +84,15 @@
std::pair<int, int> InArgFIRange, OutArgFIRange;
int GPFI; // Index of the frame object for restoring $gp
bool HasCall; // True if function has a function call.
+ int MaxCallFrameSize;
public:
MipsFunctionInfo(MachineFunction& MF)
: CPUTopSavedRegOff(0),
FPUTopSavedRegOff(0), GPHolder(-1,-1), HasLoadArgs(false),
HasStoreVarArgs(false), SRetReturnReg(0), GlobalBaseReg(0),
VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)),
- OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), HasCall(false)
+ OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), HasCall(false),
+ MaxCallFrameSize(-1)
{}
int getCPUTopSavedRegOff() const { return CPUTopSavedRegOff; }
@@ -155,6 +157,9 @@
bool hasCall() const { return HasCall; }
void setHasCall() { HasCall = true; }
+
+ int getMaxCallFrameSize() const { return MaxCallFrameSize; }
+ void setMaxCallFrameSize(int S) { MaxCallFrameSize = S; }
};
} // end of namespace llvm