add a version of IRBuilder::SetInsertPoint that takes an instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-12-19 19:16:22 +00:00
parent 0fe80bbbb6
commit cc3029acdd

View File

@ -73,6 +73,13 @@ public:
InsertPt = BB->end();
}
/// SetInsertPoint - This specifies that created instructions should be
/// inserted before the specified instruction.
void SetInsertPoint(Instruction *I) {
BB = I->getParent();
InsertPt = I;
}
/// SetInsertPoint - This specifies that created instructions should be
/// inserted at the specified point.
void SetInsertPoint(BasicBlock *TheBB, BasicBlock::iterator IP) {