git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122180
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {