aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-26 05:03:17 +0000
committerChris Lattner <sabre@nondot.org>2002-09-26 05:03:17 +0000
commit5cf816b09ed320a440d7dfcfac0d695d49947897 (patch)
tree8427a2912470d3194e06ec67efe47b13093fe0bc /include/llvm/BasicBlock.h
parent3a15d707340eef80e01651a4529965ca1a3f3b2f (diff)
- Add new ctor to BasicBlock to allow insertion before any BB, not just at
the end of the function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index e545a57526..893792656c 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -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