[llvm-commits] [llvm] r72184 - /llvm/trunk/include/llvm/Support/IRBuilder.h

Dan Gohman gohman at apple.com
Wed May 20 14:45:42 PDT 2009


Author: djg
Date: Wed May 20 16:45:41 2009
New Revision: 72184

URL: http://llvm.org/viewvc/llvm-project?rev=72184&view=rev
Log:
Add an accessor method to return the insertion point.

Modified:
    llvm/trunk/include/llvm/Support/IRBuilder.h

Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=72184&r1=72183&r2=72184&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Wed May 20 16:45:41 2009
@@ -67,6 +67,8 @@
 
   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) {





More information about the llvm-commits mailing list