[llvm-commits] CVS: llvm/include/llvm/iTerminators.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 23 18:16:35 PDT 2003
Changes in directory llvm/include/llvm:
iTerminators.h updated: 1.29 -> 1.30
---
Log message:
Rename SwitchInst::dest_push_back -> addCase
Add new removeCase method
---
Diffs of the changes:
Index: llvm/include/llvm/iTerminators.h
diff -u llvm/include/llvm/iTerminators.h:1.29 llvm/include/llvm/iTerminators.h:1.30
--- llvm/include/llvm/iTerminators.h:1.29 Sat Jun 21 22:07:32 2003
+++ llvm/include/llvm/iTerminators.h Sat Aug 23 18:14:25 2003
@@ -147,7 +147,15 @@
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!");
More information about the llvm-commits
mailing list