[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 3 21:58:01 PST 2004
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.36 -> 1.37
---
Log message:
Delete the BasicBlock ctor that only takes a BasicBlock to insert before. This
fails when the basic block points to the function->end. Instead, require that
the client pass in the function AND the basicblock to insert into.
---
Diffs of the changes: (+5 -4)
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.36 llvm/include/llvm/BasicBlock.h:1.37
--- llvm/include/llvm/BasicBlock.h:1.36 Wed Jan 14 22:37:10 2004
+++ llvm/include/llvm/BasicBlock.h Tue Feb 3 21:57:34 2004
@@ -67,13 +67,14 @@
typedef std::reverse_iterator<iterator> reverse_iterator;
/// BasicBlock ctor - If the function parameter is specified, the basic block
- /// is automatically inserted at the end of the function.
+ /// is automatically inserted at either the end of the function (if
+ /// InsertBefore is null), or before the specified basic block.
///
- 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(const std::string &Name = "", Function *Parent = 0,
+ BasicBlock *InsertBefore = 0);
~BasicBlock();
// Specialize setName to take care of symbol table majik
More information about the llvm-commits
mailing list