From 1344253e3ffd7176f6f2b028248bcaafffddd1f3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Aug 2005 22:13:27 +0000 Subject: [PATCH] add a helper method llvm-svn: 22767 --- llvm/include/llvm/BasicBlock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/BasicBlock.h b/llvm/include/llvm/BasicBlock.h index ce301bd20753..30c1fc783e7a 100644 --- a/llvm/include/llvm/BasicBlock.h +++ b/llvm/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. -- GitLab