summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/TransformInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-21 06:15:53 +0000
committerChris Lattner <sabre@nondot.org>2002-03-21 06:15:53 +0000
commit14d5ae1ac57d910089aa4253a45a32ff4f30d8c1 (patch)
treef1cb6b3e78871800294a89590235a70f57a1737e /llvm/lib/Transforms/TransformInternals.h
parentd1a7fe5062b0e7904593cfbf17849cf63d76e36b (diff)
downloadbcm5719-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.h7
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
OpenPOWER on IntegriCloud