Declare the new InsertInstBeforeInst function
authorChris Lattner <sabre@nondot.org>
Thu, 21 Mar 2002 06:15:53 +0000 (06:15 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Mar 2002 06:15:53 +0000 (06:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1927 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/TransformInternals.h

index 7bc3df4fc37654b523bcae9b32fd0eaf3dfe9774..30e3990df48bc65cd2c523d94d9f6bbc0b1be758 100644 (file)
@@ -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