mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-20 03:17:48 +00:00
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:
@@ -73,6 +73,13 @@ public:
|
|||||||
InsertPt = BB->end();
|
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
|
/// SetInsertPoint - This specifies that created instructions should be
|
||||||
/// inserted at the specified point.
|
/// inserted at the specified point.
|
||||||
void SetInsertPoint(BasicBlock *TheBB, BasicBlock::iterator IP) {
|
void SetInsertPoint(BasicBlock *TheBB, BasicBlock::iterator IP) {
|
||||||
|
|||||||
Reference in New Issue
Block a user