diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-21 06:15:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-21 06:15:53 +0000 |
| commit | 14d5ae1ac57d910089aa4253a45a32ff4f30d8c1 (patch) | |
| tree | f1cb6b3e78871800294a89590235a70f57a1737e /llvm/lib/Transforms/TransformInternals.h | |
| parent | d1a7fe5062b0e7904593cfbf17849cf63d76e36b (diff) | |
| download | bcm5719-llvm-14d5ae1ac57d910089aa4253a45a32ff4f30d8c1.tar.gz bcm5719-llvm-14d5ae1ac57d910089aa4253a45a32ff4f30d8c1.zip | |
Declare the new InsertInstBeforeInst function
llvm-svn: 1927
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.h')
| -rw-r--r-- | llvm/lib/Transforms/TransformInternals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h index 7bc3df4fc37..30e3990df48 100644 --- a/llvm/lib/Transforms/TransformInternals.h +++ b/llvm/lib/Transforms/TransformInternals.h @@ -55,6 +55,13 @@ void ReplaceInstWithInst(BasicBlock::InstListType &BIL, void ReplaceInstWithInst(Instruction *From, Instruction *To); +// InsertInstBeforeInst - Insert 'NewInst' into the basic block that 'Existing' +// is already in, and put it right before 'Existing'. This instruction should +// only be used when there is no iterator to Existing already around. The +// returned iterator points to the new instruction. +// +BasicBlock::iterator InsertInstBeforeInst(Instruction *NewInst, + Instruction *Existing); // ConvertableToGEP - This function returns true if the specified value V is // a valid index into a pointer of type Ty. If it is valid, Idx is filled in |

