aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-20 21:45:41 +0000
committerDan Gohman <gohman@apple.com>2009-05-20 21:45:41 +0000
commitb60182f1b0218e0196c78f1cfeda2cf223a47146 (patch)
tree44884d8822cdef6ada53624d5da1e4eea5bdd8b1
parent6afe2fa28816b5b208a0140372900325709271c4 (diff)
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
-rw-r--r--include/llvm/Support/IRBuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index eee6e0554b..9ef14af51d 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) {