From 9a3964a663695e9008b38f3a4fed25f21546c15e 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. llvm-svn: 72184 --- llvm/include/llvm/Support/IRBuilder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h index eee6e0554bb4..9ef14af51d9e 100644 --- a/llvm/include/llvm/Support/IRBuilder.h +++ b/llvm/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) {