[X86] Remove unnecessary redeclaration of a variable with the same assignment as...
[oota-llvm.git] / lib / Target / X86 / X86FrameLowering.h
index 2ee71159c190b197d79e7dd05b09473a0756cdcb..ee0ee227cad862058d126b205489f3cd9b50a225 100644 (file)
@@ -76,6 +76,16 @@ public:
   void eliminateCallFramePseudoInstr(MachineFunction &MF,
                                  MachineBasicBlock &MBB,
                                  MachineBasicBlock::iterator MI) const override;
+
+private:
+  /// convertArgMovsToPushes - This method tries to convert a call sequence
+  /// that uses sub and mov instructions to put the argument onto the stack
+  /// into a series of pushes.
+  /// Returns true if the transformation succeeded, false if not.
+  bool convertArgMovsToPushes(MachineFunction &MF, 
+                              MachineBasicBlock &MBB,
+                              MachineBasicBlock::iterator I, 
+                              uint64_t Amount) const;
 };
 
 } // End llvm namespace