[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 26 00:04:05 PDT 2002
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.27 -> 1.28
---
Log message:
- Add new ctor to BasicBlock to allow insertion before any BB, not just at
the end of the function.
---
Diffs of the changes:
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.27 llvm/include/llvm/BasicBlock.h:1.28
--- llvm/include/llvm/BasicBlock.h:1.27 Fri Sep 6 16:31:57 2002
+++ llvm/include/llvm/BasicBlock.h Thu Sep 26 00:03:17 2002
@@ -63,6 +63,10 @@
/// 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
More information about the llvm-commits
mailing list