Skip to content
Snippets Groups Projects
Commit 1344253e authored by Chris Lattner's avatar Chris Lattner
Browse files

add a helper method

llvm-svn: 22767
parent 4fec86d3
No related merge requests found
...@@ -101,6 +101,11 @@ public: ...@@ -101,6 +101,11 @@ public:
/// and deletes it. /// and deletes it.
/// ///
void eraseFromParent(); 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, /// getSinglePredecessor - If this basic block has a single predecessor block,
/// return the block, otherwise return a null pointer. /// return the block, otherwise return a null pointer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment