add a helper method

llvm-svn: 22767
This commit is contained in:
Chris Lattner 2005-08-12 22:13:27 +00:00
parent 4fec86d348
commit 1344253e3f
1 changed files with 5 additions and 0 deletions

View 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.