summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2017-08-20 06:57:27 +0000
committerAlex Bradbury <asb@lowrisc.org>2017-08-20 06:57:27 +0000
commite45186d43f39e1648e04a5ee09f6e76dcd2e6929 (patch)
tree926194e5d34c6e5ef9b72617273d75d60b8f2a57 /llvm/lib
parentdd83484ab429ce78956c21af333d9a0f6f9ddc8c (diff)
downloadbcm5719-llvm-e45186d43f39e1648e04a5ee09f6e76dcd2e6929.tar.gz
bcm5719-llvm-e45186d43f39e1648e04a5ee09f6e76dcd2e6929.zip
[RISCV] Fix two abuses of llvm_unreachable
Replace with report_fatal_error. llvm-svn: 311276
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp2
-rw-r--r--llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
index be83efc02d2..4896c38dbb0 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
@@ -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;
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
index db8fc5591f4..93c981e2a2a 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
@@ -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,
OpenPOWER on IntegriCloud