Move the utility function UpdateTerminator() from CodePlacementOpt() into
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index 95fd6a4ec6b392de34e9723d862fd61ec0f12d0c..b11adfe3c71ef775475bfd262a1ba70ebd968e9c 100644 (file)
@@ -225,7 +225,13 @@ public:
   /// potential fall-throughs at the end of the block.
   void moveBefore(MachineBasicBlock *NewAfter);
   void moveAfter(MachineBasicBlock *NewBefore);
-  
+
+  /// updateTerminator - Update the terminator instructions in block to account
+  /// for changes to the layout. If the block previously used a fallthrough,
+  /// it may now need a branch, and if it previously used branching it may now
+  /// be able to use a fallthrough.
+  void updateTerminator();
+
   // Machine-CFG mutators
   
   /// addSuccessor - Add succ as a successor of this MachineBasicBlock.