diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-23 23:14:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-23 23:14:37 +0000 |
commit | 131d19f9c6752c90e9b2cde72b11164fd13850db (patch) | |
tree | 3d029d2a13be4f6200af2e68337732a46f81d968 /include | |
parent | 44bb541c011bcae84759ed194ec7cb4139775fcb (diff) | |
download | llvm-131d19f9c6752c90e9b2cde72b11164fd13850db.tar.gz llvm-131d19f9c6752c90e9b2cde72b11164fd13850db.tar.bz2 llvm-131d19f9c6752c90e9b2cde72b11164fd13850db.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/iTerminators.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index 16cfb19658..434fe671d6 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -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!"); |