mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-19 13:38:56 +00:00
Fold a llvm_unreachable into an assert. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ddcc06d824
commit
c09121b93b
@ -174,7 +174,8 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (getEMachine() == ELF::EM_386) {
|
} else {
|
||||||
|
assert(getEMachine() == ELF::EM_386 && "Unsupported ELF machine type.");
|
||||||
if (IsPCRel) {
|
if (IsPCRel) {
|
||||||
switch ((unsigned)Fixup.getKind()) {
|
switch ((unsigned)Fixup.getKind()) {
|
||||||
default:
|
default:
|
||||||
@ -286,8 +287,7 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
llvm_unreachable("Unsupported ELF machine type.");
|
|
||||||
|
|
||||||
return Type;
|
return Type;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user