Elminiate MachineFunction& argument from eliminateFrameIndex
authorNate Begeman <natebegeman@mac.com>
Sat, 14 Aug 2004 22:00:10 +0000 (22:00 +0000)
committerNate Begeman <natebegeman@mac.com>
Sat, 14 Aug 2004 22:00:10 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15736 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MRegisterInfo.h
lib/CodeGen/PrologEpilogInserter.cpp

index c1348823efd4bfd8d6d0d581ae1325d2223657a2..2ca22b00b6bedee91d6422f331b9abb086e1c596 100644 (file)
@@ -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
index a12b6ca33db4e731702e1fbd969e360f30f9d178..20442129650444c9de55adb35bb943fa5a5413b6 100644 (file)
@@ -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;
         }
 }