mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[RISCV] Fix two abuses of llvm_unreachable
Replace with report_fatal_error. llvm-svn: 311276
This commit is contained in:
parent
df0b1e71a3
commit
d8828f7e4d
@ -51,7 +51,7 @@ public:
|
||||
void relaxInstruction(const MCInst &Inst, const MCSubtargetInfo &STI,
|
||||
MCInst &Res) const override {
|
||||
|
||||
llvm_unreachable("RISCVAsmBackend::relaxInstruction() unimplemented");
|
||||
report_fatal_error("RISCVAsmBackend::relaxInstruction() unimplemented");
|
||||
}
|
||||
|
||||
bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override;
|
||||
|
@ -37,7 +37,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
|
||||
const MCValue &Target,
|
||||
const MCFixup &Fixup,
|
||||
bool IsPCRel) const {
|
||||
llvm_unreachable("invalid fixup kind!");
|
||||
report_fatal_error("invalid fixup kind!");
|
||||
}
|
||||
|
||||
MCObjectWriter *llvm::createRISCVELFObjectWriter(raw_pwrite_stream &OS,
|
||||
|
Loading…
Reference in New Issue
Block a user