[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 23 22:42:01 PDT 2003
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.31 -> 1.32
---
Log message:
Allow specifying the name for the newly split basic block
---
Diffs of the changes:
Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.31 llvm/lib/VMCore/BasicBlock.cpp:1.32
--- llvm/lib/VMCore/BasicBlock.cpp:1.31 Fri Apr 25 18:14:19 2003
+++ llvm/lib/VMCore/BasicBlock.cpp Sat Aug 23 22:41:39 2003
@@ -217,12 +217,12 @@
// cause a degenerate basic block to be formed, having a terminator inside of
// the basic block).
//
-BasicBlock *BasicBlock::splitBasicBlock(iterator I) {
+BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) {
assert(getTerminator() && "Can't use splitBasicBlock on degenerate BB!");
assert(I != InstList.end() &&
"Trying to get me to create degenerate basic block!");
- BasicBlock *New = new BasicBlock("", getParent());
+ BasicBlock *New = new BasicBlock(BBName, getParent());
// Go from the end of the basic block through to the iterator pointer, moving
// to the new basic block...
More information about the llvm-commits
mailing list