add a helper method
authorChris Lattner <sabre@nondot.org>
Fri, 12 Aug 2005 22:13:27 +0000 (22:13 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Aug 2005 22:13:27 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22767 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h

index ce301bd207537a112f1292972c6f106872311f67..30c1fc783e7a1ac3f846c4e595c4a3046fdd96a0 100644 (file)
@@ -101,6 +101,11 @@ public:
   /// and deletes it.
   ///
   void eraseFromParent();
+  
+  /// moveBefore - Unlink this instruction from its current function and
+  /// insert it into the function that MovePos lives in, right before
+  /// MovePos.
+  void moveBefore(BasicBlock *MovePos);
 
   /// getSinglePredecessor - If this basic block has a single predecessor block,
   /// return the block, otherwise return a null pointer.