mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Fixed comments for SwitchInst::addCase and for SwitchInst::removeCase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0aa85eb231
commit
c347b6f4b6
@ -2680,14 +2680,17 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// addCase - Add an entry to the switch instruction...
|
/// 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);
|
void addCase(ConstantInt *OnVal, BasicBlock *Dest);
|
||||||
|
|
||||||
/// removeCase - This method removes the specified case and its successor
|
/// removeCase - This method removes the specified case and its successor
|
||||||
/// from the switch instruction. Note that this operation may reorder the
|
/// from the switch instruction. Note that this operation may reorder the
|
||||||
/// remaining cases at index idx and above.
|
/// 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);
|
void removeCase(CaseIt i);
|
||||||
|
|
||||||
unsigned getNumSuccessors() const { return getNumOperands()/2; }
|
unsigned getNumSuccessors() const { return getNumOperands()/2; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user