mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
[unwind removal] Remove all of the code for the dead 'unwind' instruction. There
were no 'unwind' instructions being generated before this, so this is in effect a no-op. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -630,32 +630,6 @@ BasicBlock *ReturnInst::getSuccessorV(unsigned idx) const {
|
||||
ReturnInst::~ReturnInst() {
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// UnwindInst Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
UnwindInst::UnwindInst(LLVMContext &Context, Instruction *InsertBefore)
|
||||
: TerminatorInst(Type::getVoidTy(Context), Instruction::Unwind,
|
||||
0, 0, InsertBefore) {
|
||||
}
|
||||
UnwindInst::UnwindInst(LLVMContext &Context, BasicBlock *InsertAtEnd)
|
||||
: TerminatorInst(Type::getVoidTy(Context), Instruction::Unwind,
|
||||
0, 0, InsertAtEnd) {
|
||||
}
|
||||
|
||||
|
||||
unsigned UnwindInst::getNumSuccessorsV() const {
|
||||
return getNumSuccessors();
|
||||
}
|
||||
|
||||
void UnwindInst::setSuccessorV(unsigned idx, BasicBlock *NewSucc) {
|
||||
llvm_unreachable("UnwindInst has no successors!");
|
||||
}
|
||||
|
||||
BasicBlock *UnwindInst::getSuccessorV(unsigned idx) const {
|
||||
llvm_unreachable("UnwindInst has no successors!");
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// ResumeInst Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -709,11 +683,11 @@ unsigned UnreachableInst::getNumSuccessorsV() const {
|
||||
}
|
||||
|
||||
void UnreachableInst::setSuccessorV(unsigned idx, BasicBlock *NewSucc) {
|
||||
llvm_unreachable("UnwindInst has no successors!");
|
||||
llvm_unreachable("UnreachableInst has no successors!");
|
||||
}
|
||||
|
||||
BasicBlock *UnreachableInst::getSuccessorV(unsigned idx) const {
|
||||
llvm_unreachable("UnwindInst has no successors!");
|
||||
llvm_unreachable("UnreachableInst has no successors!");
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -3516,11 +3490,6 @@ ResumeInst *ResumeInst::clone_impl() const {
|
||||
return new(1) ResumeInst(*this);
|
||||
}
|
||||
|
||||
UnwindInst *UnwindInst::clone_impl() const {
|
||||
LLVMContext &Context = getContext();
|
||||
return new UnwindInst(Context);
|
||||
}
|
||||
|
||||
UnreachableInst *UnreachableInst::clone_impl() const {
|
||||
LLVMContext &Context = getContext();
|
||||
return new UnreachableInst(Context);
|
||||
|
||||
Reference in New Issue
Block a user