Fuchsia is exclusively 64-bit so this throw an error when using this
triple.
Differential Revision: https://reviews.llvm.org/D144998
// RISC-V supports the MachineOutliner.
setMachineOutliner(true);
setSupportsDefaultOutlining(true);
+
+ if (TT.isOSFuchsia() && !TT.isArch64Bit())
+ report_fatal_error("Fuchsia is only supported for 64-bit");
}
const RISCVSubtarget *
--- /dev/null
+; RUN: not --crash llc -mtriple=riscv32-unknown-fuchsia < %s 2>&1 | FileCheck %s
+
+; CHECK: LLVM ERROR: Fuchsia is only supported for 64-bit
+define void @nothing() nounwind {
+ ret void
+}