forked from OSchip/llvm-project
Elminiate MachineFunction& argument from eliminateFrameIndex
llvm-svn: 15736
This commit is contained in:
parent
6139134715
commit
386d940f5c
|
@ -310,8 +310,7 @@ public:
|
||||||
/// finished product. The return value is the number of instructions
|
/// finished product. The return value is the number of instructions
|
||||||
/// added to (negative if removed from) the basic block.
|
/// added to (negative if removed from) the basic block.
|
||||||
///
|
///
|
||||||
virtual void eliminateFrameIndex(MachineFunction &MF,
|
virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI) const = 0;
|
||||||
MachineBasicBlock::iterator MI) const = 0;
|
|
||||||
|
|
||||||
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
|
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
|
||||||
/// the function. The return value is the number of instructions
|
/// 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 (I->getOperand(i).isFrameIndex()) {
|
||||||
// If this instruction has a FrameIndex operand, we need to use that
|
// If this instruction has a FrameIndex operand, we need to use that
|
||||||
// target machine register info object to eliminate it.
|
// target machine register info object to eliminate it.
|
||||||
MRI.eliminateFrameIndex(Fn, I);
|
MRI.eliminateFrameIndex(I);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue