Add an accessor method to return the insertion point.
authorDan Gohman <gohman@apple.com>
Wed, 20 May 2009 21:45:41 +0000 (21:45 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 20 May 2009 21:45:41 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72184 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index eee6e0554bb4d200e9e7f0c5bff68c0a3e64f9a2..9ef14af51d9e6f1b80f462f6ca47890481a567cc 100644 (file)
@@ -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) {