From: Chris Lattner Date: Mon, 8 Aug 2005 05:21:33 +0000 (+0000) Subject: add a new helper method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=287921d1889e101cb7f5cfa031a34ebe53a9a4a0;p=oota-llvm.git add a new helper method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22697 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 9bf629a7f02..ef6285261d0 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -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)...