mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
18b111bffe
commit
a09f0d4ab7
@ -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