llvm.org GIT mirror llvm / a09f0d4
Pass call frame setup SP adjustment along to eliminateFrameIndex(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36624 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
116116 int getScavengingFrameIndex() const { return ScavengingFrameIndex; }
117117
118118 /// scavengeRegister - Make a register of the specific register class
119 /// available and do the appropriate bookkeeping. Returns the scavenged
120 /// register.
119 /// available and do the appropriate bookkeeping. SPAdj is the stack
120 /// adjustment due to call frame, it's passed along to eliminateFrameIndex().
121 /// Returns the scavenged register.
121122 unsigned scavengeRegister(const TargetRegisterClass *RegClass,
122 MachineBasicBlock::iterator I);
123 unsigned scavengeRegister(const TargetRegisterClass *RegClass) {
124 return scavengeRegister(RegClass, MBBI);
123 MachineBasicBlock::iterator I, int SPAdj);
124 unsigned scavengeRegister(const TargetRegisterClass *RegClass, int SPAdj) {
125 return scavengeRegister(RegClass, MBBI, SPAdj);
125126 }
126127
127128 private: