mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Rename SwitchInst::dest_push_back -> addCase
Add new removeCase method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8088 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -147,7 +147,15 @@ public:
|
||||
return cast<BasicBlock>(Operands[1].get());
|
||||
}
|
||||
|
||||
void dest_push_back(Constant *OnVal, BasicBlock *Dest);
|
||||
/// addCase - Add an entry to the switch instruction...
|
||||
///
|
||||
void addCase(Constant *OnVal, BasicBlock *Dest);
|
||||
|
||||
/// removeCase - This method removes the specified successor from the switch
|
||||
/// instruction. Note that this cannot be used to remove the default
|
||||
/// destination (successor #0).
|
||||
///
|
||||
void removeCase(unsigned idx);
|
||||
|
||||
virtual const BasicBlock *getSuccessor(unsigned idx) const {
|
||||
assert(idx < getNumSuccessors() &&"Successor idx out of range for switch!");
|
||||
|
Reference in New Issue
Block a user