projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0391be
)
add a helper method
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Aug 2005 22:13:27 +0000
(22:13 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 12 Aug 2005 22:13:27 +0000
(22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22767
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/BasicBlock.h
patch
|
blob
|
history
diff --git
a/include/llvm/BasicBlock.h
b/include/llvm/BasicBlock.h
index ce301bd207537a112f1292972c6f106872311f67..30c1fc783e7a1ac3f846c4e595c4a3046fdd96a0 100644
(file)
--- 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.