Add an accessor method to return the insertion point.

llvm-svn: 72184
This commit is contained in:
Dan Gohman 2009-05-20 21:45:41 +00:00
parent e70f108158
commit 9a3964a663
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ public:
BasicBlock *GetInsertBlock() const { return BB; } BasicBlock *GetInsertBlock() const { return BB; }
BasicBlock::iterator GetInsertPoint() const { return InsertPt; }
/// SetInsertPoint - This specifies that created instructions should be /// SetInsertPoint - This specifies that created instructions should be
/// appended to the end of the specified block. /// appended to the end of the specified block.
void SetInsertPoint(BasicBlock *TheBB) { void SetInsertPoint(BasicBlock *TheBB) {