add a new helper method
authorChris Lattner <sabre@nondot.org>
Mon, 8 Aug 2005 05:21:33 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Aug 2005 05:21:33 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22697 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h

index 9bf629a7f02698ff97bcf3122320f4c286ac67e1..ef6285261d06028e76afc6b9d5e8953c55def2f6 100644 (file)
@@ -93,6 +93,11 @@ public:
   ///
   void eraseFromParent();
 
+  /// moveBefore - Unlink this instruction from its current basic block and
+  /// insert it into the basic block that MovePos lives in, right before
+  /// MovePos.
+  void moveBefore(Instruction *MovePos);
+
   // ---------------------------------------------------------------------------
   /// Subclass classification... getOpcode() returns a member of
   /// one of the enums that is coming soon (down below)...