From: Dan Gohman Date: Wed, 20 May 2009 21:45:41 +0000 (+0000) Subject: Add an accessor method to return the insertion point. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b60182f1b0218e0196c78f1cfeda2cf223a47146;p=oota-llvm.git Add an accessor method to return the insertion point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index eee6e0554bb..9ef14af51d9 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -67,6 +67,8 @@ public: BasicBlock *GetInsertBlock() const { return BB; } + BasicBlock::iterator GetInsertPoint() const { return InsertPt; } + /// SetInsertPoint - This specifies that created instructions should be /// appended to the end of the specified block. void SetInsertPoint(BasicBlock *TheBB) {