summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-08 05:21:33 +0000
committerChris Lattner <sabre@nondot.org>2005-08-08 05:21:33 +0000
commit9dae86a54d1390194fac10433903b27294d8c2f4 (patch)
treed49fca53f29360285e9f5a7646df768242ba45fb
parent88e2d2ee6b1533035c0496b70583328447dceb46 (diff)
downloadbcm5719-llvm-9dae86a54d1390194fac10433903b27294d8c2f4.tar.gz
bcm5719-llvm-9dae86a54d1390194fac10433903b27294d8c2f4.zip
add a new helper method
llvm-svn: 22697
-rw-r--r--llvm/include/llvm/Instruction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h
index 9bf629a7f02..ef6285261d0 100644
--- a/llvm/include/llvm/Instruction.h
+++ b/llvm/include/llvm/Instruction.h
@@ -93,6 +93,11 @@ public:
///
void eraseFromParent();
+ /// moveBefore - Unlink this instruction from its current basic block and
+ /// insert it into the basic block that MovePos lives in, right before
+ /// MovePos.
+ void moveBefore(Instruction *MovePos);
+
// ---------------------------------------------------------------------------
/// Subclass classification... getOpcode() returns a member of
/// one of the enums that is coming soon (down below)...
OpenPOWER on IntegriCloud