1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Fixed comments for SwitchInst::addCase and for SwitchInst::removeCase.

llvm-svn: 152624
This commit is contained in:
Stepan Dyatkovskiy 2012-03-13 12:37:10 +00:00
parent 9931da5d8d
commit 55022491ae

View File

@ -2680,14 +2680,17 @@ public:
}
/// addCase - Add an entry to the switch instruction...
///
/// Note:
/// This action invalidates case_end(). Old case_end() iterator will
/// point to the added case.
void addCase(ConstantInt *OnVal, BasicBlock *Dest);
/// removeCase - This method removes the specified case and its successor
/// from the switch instruction. Note that this operation may reorder the
/// remaining cases at index idx and above.
/// Also note, that iterator becomes invalid after this operation.
///
/// Note:
/// This action invalidates iterators for all cases following the one removed,
/// including the case_end() iterator.
void removeCase(CaseIt i);
unsigned getNumSuccessors() const { return getNumOperands()/2; }