diff options
| author | Dan Gohman <gohman@apple.com> | 2009-05-20 21:45:41 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-05-20 21:45:41 +0000 |
| commit | 9a3964a663695e9008b38f3a4fed25f21546c15e (patch) | |
| tree | 486fd0246ce8294925f98f41b806c5ed88d2088a /llvm | |
| parent | e70f1081588fbd48eaf651a399b959177a4c8310 (diff) | |
| download | bcm5719-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.h | 2 |
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) { |

