[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 12 15:13:38 PDT 2005
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.55 -> 1.56
---
Log message:
add a helper method
---
Diffs of the changes: (+5 -0)
BasicBlock.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.55 llvm/include/llvm/BasicBlock.h:1.56
--- llvm/include/llvm/BasicBlock.h:1.55 Wed Jul 27 00:53:43 2005
+++ llvm/include/llvm/BasicBlock.h Fri Aug 12 17:13:27 2005
@@ -101,6 +101,11 @@
/// 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.
More information about the llvm-commits
mailing list