1
0
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:
Alex Bradbury 2017-08-20 06:57:27 +00:00
parent df0b1e71a3
commit d8828f7e4d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,