From b60182f1b0218e0196c78f1cfeda2cf223a47146 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 May 2009 21:45:41 +0000 Subject: [PATCH] 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 --- include/llvm/Support/IRBuilder.h | 2 ++ 1 file changed, 2 insertions(+) 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) {