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 | 9dae86a54d1390194fac10433903b27294d8c2f4 (patch) | |
| tree | d49fca53f29360285e9f5a7646df768242ba45fb | |
| parent | 88e2d2ee6b1533035c0496b70583328447dceb46 (diff) | |
| download | bcm5719-llvm-9dae86a54d1390194fac10433903b27294d8c2f4.tar.gz bcm5719-llvm-9dae86a54d1390194fac10433903b27294d8c2f4.zip | |
add a new helper method
llvm-svn: 22697
| -rw-r--r-- | llvm/include/llvm/Instruction.h | 5 |
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)... |

