diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-17 18:29:27 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-17 18:29:27 +0000 |
commit | 26bb50ab48c561adfd32d129e0eff0cbf0a04625 (patch) | |
tree | 931011ab005e420535a3cca22020397b7d224154 /include | |
parent | 2b7470eb54880ce7f74469d6e09eaf7f0864f8ab (diff) | |
download | external_llvm-26bb50ab48c561adfd32d129e0eff0cbf0a04625.zip external_llvm-26bb50ab48c561adfd32d129e0eff0cbf0a04625.tar.gz external_llvm-26bb50ab48c561adfd32d129e0eff0cbf0a04625.tar.bz2 |
Add an insertBefore method for attaching previously unattached instructions,
such as those created by clone(), to a basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 40d8305..89e3e23 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -102,6 +102,10 @@ public: /// void eraseFromParent(); + /// insertBefore - Insert an unlinked instructions into a basic block + /// immediately before the specified instruction. + void insertBefore(Instruction *InsertPos); + /// moveBefore - Unlink this instruction from its current basic block and /// insert it into the basic block that MovePos lives in, right before /// MovePos. |