diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-08-14 22:00:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-08-14 22:00:10 +0000 |
commit | 386d940f5cd4a0becd41a821750503e5eb379604 (patch) | |
tree | fc217465d24ab2353e4201aa50db35e5cb9d5a64 | |
parent | 61391347154a67968733dc99d556b497009113fa (diff) | |
download | bcm5719-llvm-386d940f5cd4a0becd41a821750503e5eb379604.tar.gz bcm5719-llvm-386d940f5cd4a0becd41a821750503e5eb379604.zip |
Elminiate MachineFunction& argument from eliminateFrameIndex
llvm-svn: 15736
-rw-r--r-- | llvm/include/llvm/Target/MRegisterInfo.h | 3 | ||||
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/Target/MRegisterInfo.h b/llvm/include/llvm/Target/MRegisterInfo.h index c1348823efd..2ca22b00b6b 100644 --- a/llvm/include/llvm/Target/MRegisterInfo.h +++ b/llvm/include/llvm/Target/MRegisterInfo.h @@ -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 diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index a12b6ca33db..20442129650 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -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; } } |