mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Elminiate MachineFunction& argument from eliminateFrameIndex
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77a2a9d9da
commit
5de0f7aa14
@ -310,8 +310,7 @@ public:
|
||||
/// finished product. The return value is the number of instructions
|
||||
/// added to (negative if removed from) the basic block.
|
||||
///
|
||||
virtual void eliminateFrameIndex(MachineFunction &MF,
|
||||
MachineBasicBlock::iterator MI) const = 0;
|
||||
virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI) const = 0;
|
||||
|
||||
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
|
||||
/// the function. The return value is the number of instructions
|
||||
|
@ -337,7 +337,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
|
||||
if (I->getOperand(i).isFrameIndex()) {
|
||||
// If this instruction has a FrameIndex operand, we need to use that
|
||||
// target machine register info object to eliminate it.
|
||||
MRI.eliminateFrameIndex(Fn, I);
|
||||
MRI.eliminateFrameIndex(I);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user