llvm.org GIT mirror llvm / 7085221
Delete MipsFunctionInfo::NextStackOffset. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167546 91177308-0d34-0410-b5e6-96231b3b80d8 Akira Hatanaka 7 years ago
2 changed file(s) with 6 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
26732673 if (MipsCCInfo.hasByValArg() || FI.hasByvalArg())
26742674 return false;
26752675
2676 // Return true if the callee's next stack offset is no larger than the
2676 // Return true if the callee's argument area is no larger than the
26772677 // caller's.
2678 return NextStackOffset <= FI.nextStackOffset();
2678 return NextStackOffset <= FI.getIncomingArgSize();
26792679 }
26802680
26812681 SDValue
30263026 MipsCCInfo.analyzeFormalArguments(Ins);
30273027 MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(),
30283028 MipsCCInfo.hasByValArg());
3029 MipsFI->setIncomingArgSize(CCInfo.getNextStackOffset());
30303029
30313030 Function::const_arg_iterator FuncArg =
30323031 DAG.getMachineFunction().getFunction()->arg_begin();
4646 /// VarArgsFrameIndex - FrameIndex for start of varargs area.
4747 int VarArgsFrameIndex;
4848
49 // Formal argument information obtained during call to LowerFormalArguments.
50 unsigned NextStackOffset;
49 /// True if function has a byval argument.
5150 bool HasByvalArg;
5251
53 // Size of incoming argument area.
52 /// Size of incoming argument area.
5453 unsigned IncomingArgSize;
5554
5655 public:
7170 int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
7271 void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
7372
74 unsigned nextStackOffset() const { return NextStackOffset; }
7573 bool hasByvalArg() const { return HasByvalArg; }
76 void setFormalArgInfo(unsigned Offset, bool HasByval) {
77 NextStackOffset = Offset;
74 void setFormalArgInfo(unsigned Size, bool HasByval) {
75 IncomingArgSize = Size;
7876 HasByvalArg = HasByval;
7977 }
8078
8179 unsigned getIncomingArgSize() const { return IncomingArgSize; }
82 void setIncomingArgSize(unsigned S) { IncomingArgSize = S; }
8380 };
8481
8582 } // end of namespace llvm