aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-12 22:13:27 +0000
committerChris Lattner <sabre@nondot.org>2005-08-12 22:13:27 +0000
commit07216eabb7e749dc38f521e73485db553cefc8d4 (patch)
treec93b6fa009f4dfe53d64d9314dac6a9e3fec325a
parente0391beda88c6c441ce1aadbe223d6c0784061a2 (diff)
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22767 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/BasicBlock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index ce301bd207..30c1fc783e 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -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.