diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-25 17:52:48 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-25 17:52:48 +0000 |
commit | f15f49850768f5889c2e12aeb273e158597a1223 (patch) | |
tree | 935425d0bb7b89f0f55adfd16f81573c0ca891d5 /lib/Target/Mips/MipsMachineFunction.h | |
parent | edacba83dc6b34676fe2be60e0bac487a6d1152d (diff) | |
download | external_llvm-f15f49850768f5889c2e12aeb273e158597a1223.zip external_llvm-f15f49850768f5889c2e12aeb273e158597a1223.tar.gz external_llvm-f15f49850768f5889c2e12aeb273e158597a1223.tar.bz2 |
Change initial value of MaxCallFrameSize. MipsFI::getMaxCallFrameSize() should
return 0 if there are no function calls made.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMachineFunction.h')
-rw-r--r-- | lib/Target/Mips/MipsMachineFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h index fffc0ed..9cc0faf 100644 --- a/lib/Target/Mips/MipsMachineFunction.h +++ b/lib/Target/Mips/MipsMachineFunction.h @@ -48,13 +48,13 @@ private: 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; + unsigned MaxCallFrameSize; public: MipsFunctionInfo(MachineFunction& MF) : SRetReturnReg(0), GlobalBaseReg(0), VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)), OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), HasCall(false), - MaxCallFrameSize(-1) + MaxCallFrameSize(0) {} bool isInArgFI(int FI) const { @@ -89,8 +89,8 @@ public: bool hasCall() const { return HasCall; } void setHasCall() { HasCall = true; } - int getMaxCallFrameSize() const { return MaxCallFrameSize; } - void setMaxCallFrameSize(int S) { MaxCallFrameSize = S; } + unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; } + void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; } }; } // end of namespace llvm |