aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-21 16:04:49 +0000
committerChris Lattner <sabre@nondot.org>2005-04-21 16:04:49 +0000
commit0f67dd6237eb7227aa58e9b77cd95f354989b891 (patch)
treebd9e22fb109c92ced2ed8d57b32e8ba4ce53307d /lib/VMCore/BasicBlock.cpp
parent588bbbffa1cf29201c72b8b3f04c6330f4bde2dd (diff)
Improve doxygen documentation, patch contributed by Evan Jones!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r--lib/VMCore/BasicBlock.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index 95eab23edf..65ba49a837 100644
--- a/lib/VMCore/BasicBlock.cpp
+++ b/lib/VMCore/BasicBlock.cpp
@@ -195,17 +195,17 @@ void BasicBlock::removePredecessor(BasicBlock *Pred,
}
-// splitBasicBlock - This splits a basic block into two at the specified
-// instruction. Note that all instructions BEFORE the specified iterator stay
-// as part of the original basic block, an unconditional branch is added to
-// the new BB, and the rest of the instructions in the BB are moved to the new
-// BB, including the old terminator. This invalidates the iterator.
-//
-// Note that this only works on well formed basic blocks (must have a
-// terminator), and 'I' must not be the end of instruction list (which would
-// cause a degenerate basic block to be formed, having a terminator inside of
-// the basic block).
-//
+/// splitBasicBlock - This splits a basic block into two at the specified
+/// instruction. Note that all instructions BEFORE the specified iterator stay
+/// as part of the original basic block, an unconditional branch is added to
+/// the new BB, and the rest of the instructions in the BB are moved to the new
+/// BB, including the old terminator. This invalidates the iterator.
+///
+/// Note that this only works on well formed basic blocks (must have a
+/// terminator), and 'I' must not be the end of instruction list (which would
+/// cause a degenerate basic block to be formed, having a terminator inside of
+/// the basic block).
+///
BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) {
assert(getTerminator() && "Can't use splitBasicBlock on degenerate BB!");
assert(I != InstList.end() &&