diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-21 16:04:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-21 16:04:49 +0000 |
commit | 7ceb081f3fc6a5b3d47a37f9026eebc2740f155c (patch) | |
tree | 8834f531f1834b45cdcaa6edfb26846044109eff /llvm/lib/VMCore/BasicBlock.cpp | |
parent | f6302441f015a56a0da6b53fd6b16ca766d42250 (diff) | |
download | bcm5719-llvm-7ceb081f3fc6a5b3d47a37f9026eebc2740f155c.tar.gz bcm5719-llvm-7ceb081f3fc6a5b3d47a37f9026eebc2740f155c.zip |
Improve doxygen documentation, patch contributed by Evan Jones!
llvm-svn: 21393
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 95eab23edff..65ba49a837f 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/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() && |