[llvm-commits] CVS: llvm/include/llvm/iTerminators.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 20 12:12:01 PST 2003
Changes in directory llvm/include/llvm:
iTerminators.h updated: 1.36 -> 1.37
---
Log message:
Somehow I forgot poor little UnwindInst
*sniff*
---
Diffs of the changes: (+4 -3)
Index: llvm/include/llvm/iTerminators.h
diff -u llvm/include/llvm/iTerminators.h:1.36 llvm/include/llvm/iTerminators.h:1.37
--- llvm/include/llvm/iTerminators.h:1.36 Thu Nov 20 11:44:37 2003
+++ llvm/include/llvm/iTerminators.h Thu Nov 20 12:11:47 2003
@@ -311,6 +311,9 @@
UnwindInst(Instruction *InsertBefore = 0)
: TerminatorInst(Instruction::Unwind, InsertBefore) {
}
+ UnwindInst(BasicBlock *InsertAtEnd)
+ : TerminatorInst(Instruction::Unwind, InsertAtEnd) {
+ }
virtual Instruction *clone() const { return new UnwindInst(); }
@@ -319,9 +322,7 @@
abort();
return 0;
}
- virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
- assert(0 && "UnwindInst has no successors!");
- }
+ virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc);
virtual unsigned getNumSuccessors() const { return 0; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
More information about the llvm-commits
mailing list