mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 05:55:40 +00:00
Pass call frame setup SP adjustment along to eliminateFrameIndex().
llvm-svn: 36624
This commit is contained in:
parent
65f0ba62d5
commit
e7bd8c76db
@ -117,12 +117,13 @@ public:
|
||||
int getScavengingFrameIndex() const { return ScavengingFrameIndex; }
|
||||
|
||||
/// scavengeRegister - Make a register of the specific register class
|
||||
/// available and do the appropriate bookkeeping. Returns the scavenged
|
||||
/// register.
|
||||
/// available and do the appropriate bookkeeping. SPAdj is the stack
|
||||
/// adjustment due to call frame, it's passed along to eliminateFrameIndex().
|
||||
/// Returns the scavenged register.
|
||||
unsigned scavengeRegister(const TargetRegisterClass *RegClass,
|
||||
MachineBasicBlock::iterator I);
|
||||
unsigned scavengeRegister(const TargetRegisterClass *RegClass) {
|
||||
return scavengeRegister(RegClass, MBBI);
|
||||
MachineBasicBlock::iterator I, int SPAdj);
|
||||
unsigned scavengeRegister(const TargetRegisterClass *RegClass, int SPAdj) {
|
||||
return scavengeRegister(RegClass, MBBI, SPAdj);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user