mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Somehow I forgot poor little UnwindInst
*sniff* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b74c83334
commit
593ba8f560
@ -311,6 +311,9 @@ struct UnwindInst : public TerminatorInst {
|
|||||||
UnwindInst(Instruction *InsertBefore = 0)
|
UnwindInst(Instruction *InsertBefore = 0)
|
||||||
: TerminatorInst(Instruction::Unwind, InsertBefore) {
|
: TerminatorInst(Instruction::Unwind, InsertBefore) {
|
||||||
}
|
}
|
||||||
|
UnwindInst(BasicBlock *InsertAtEnd)
|
||||||
|
: TerminatorInst(Instruction::Unwind, InsertAtEnd) {
|
||||||
|
}
|
||||||
|
|
||||||
virtual Instruction *clone() const { return new UnwindInst(); }
|
virtual Instruction *clone() const { return new UnwindInst(); }
|
||||||
|
|
||||||
@ -319,9 +322,7 @@ struct UnwindInst : public TerminatorInst {
|
|||||||
abort();
|
abort();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
|
virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc);
|
||||||
assert(0 && "UnwindInst has no successors!");
|
|
||||||
}
|
|
||||||
virtual unsigned getNumSuccessors() const { return 0; }
|
virtual unsigned getNumSuccessors() const { return 0; }
|
||||||
|
|
||||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
|
@ -23,7 +23,10 @@ void ReturnInst::setSuccessor(unsigned idx, BasicBlock *NewSucc) {
|
|||||||
assert(0 && "ReturnInst has no successors!");
|
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,
|
BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond,
|
||||||
Instruction *InsertBefore)
|
Instruction *InsertBefore)
|
||||||
|
Loading…
Reference in New Issue
Block a user