diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-08 05:21:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-08 05:21:33 +0000 |
commit | 287921d1889e101cb7f5cfa031a34ebe53a9a4a0 (patch) | |
tree | ae4f7bf6c54830f13013969542e8b0992f896c30 | |
parent | 660538c8a5c4795926694a5d37b147315941933e (diff) |
add a new helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22697 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Instruction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 9bf629a7f0..ef6285261d 100644 --- a/include/llvm/Instruction.h +++ b/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)... |