Delete unnecessary elses.
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index 46a82884efa4b197482671ce5f70389c290e61e4..54ac47008f231acd9a07ea296a6a1ddc11a24b27 100644 (file)
@@ -263,6 +263,12 @@ public:
   MachineInstr *remove(MachineInstr *I)  { return Insts.remove(I); }
   void clear()                           { Insts.clear(); }
 
+  /// splice - Take an instruction from MBB 'Other' at the position From,
+  /// and insert it into this MBB right before 'where'.
+  void splice(iterator where, MachineBasicBlock *Other, iterator From) {
+    Insts.splice(where, Other->Insts, From);
+  }
+
   /// splice - Take a block of instructions from MBB 'Other' in the range [From,
   /// To), and insert them into this MBB right before 'where'.
   void splice(iterator where, MachineBasicBlock *Other, iterator From,