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 | f78642bc06164b8d3be18c3a6ccda2204f7ffe1d (patch) | |
tree | 974656e369899673acf36ee0181f5ce37896c919 /lib/Transforms/TransformInternals.h | |
parent | af2d701e125d915e4d50da0c9861ee8655e78c27 (diff) |
Declare the new InsertInstBeforeInst function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 7bc3df4fc3..30e3990df4 100644 --- a/lib/Transforms/TransformInternals.h +++ b/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 |