summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit9a3964a663695e9008b38f3a4fed25f21546c15e (patch)
tree486fd0246ce8294925f98f41b806c5ed88d2088a /llvm
parente70f1081588fbd48eaf651a399b959177a4c8310 (diff)
downloadbcm5719-llvm-9a3964a663695e9008b38f3a4fed25f21546c15e.tar.gz
bcm5719-llvm-9a3964a663695e9008b38f3a4fed25f21546c15e.zip
Add an accessor method to return the insertion point.
llvm-svn: 72184
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/IRBuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h
index eee6e0554bb..9ef14af51d9 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) {
OpenPOWER on IntegriCloud