- Add new ctor to BasicBlock to allow insertion before any BB, not just at
authorChris Lattner <sabre@nondot.org>
Thu, 26 Sep 2002 05:03:17 +0000 (05:03 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Sep 2002 05:03:17 +0000 (05:03 +0000)
    the end of the function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3933 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h

index e545a575262a5d772821fa5df60a8c9a0e264826..893792656c8e66792ed90e54e465b0711f283679 100644 (file)
@@ -63,6 +63,10 @@ public:
   /// is automatically inserted at the end of the function.
   ///
   BasicBlock(const std::string &Name = "", Function *Parent = 0);
+
+  /// BasicBlock ctor - If the InsertBefore parameter is specified, the basic
+  /// block is automatically inserted right before the specified block.
+  BasicBlock(const std::string &Name, BasicBlock *InsertBefore);
   ~BasicBlock();
 
   // Specialize setName to take care of symbol table majik