UnwindInst(Instruction *InsertBefore = 0)
: TerminatorInst(Instruction::Unwind, InsertBefore) {
}
+ UnwindInst(BasicBlock *InsertAtEnd)
+ : TerminatorInst(Instruction::Unwind, InsertAtEnd) {
+ }
virtual Instruction *clone() const { return new UnwindInst(); }
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:
assert(0 && "ReturnInst has no successors!");
}
-
+// Likewise for UnwindInst
+void UnwindInst::setSuccessor(unsigned idx, BasicBlock *NewSucc) {
+ assert(0 && "UnwindInst has no successors!");
+}
BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond,
Instruction *InsertBefore)