We have lots of uses of `report_fatal_error` in the backend, which will result in a crash and a backtrace. This API has been replaced with `reportFatalUsageError` and `reportFatalInternalError`, for which only the latter emits a stack trace. This tries to move the errors in RISCVISelLowering and RISCVRegisterInfo to the new APIs, to prevent some stack traces where we specificially do not support certain situations. Updates #124132
12 lines
318 B
LLVM
12 lines
318 B
LLVM
; RUN: not llc -mtriple riscv32-unknown-elf -o - %s \
|
|
; RUN: 2>&1 | FileCheck %s
|
|
; RUN: not llc -mtriple riscv64-unknown-elf -o - %s \
|
|
; RUN: 2>&1 | FileCheck %s
|
|
|
|
; CHECK: LLVM ERROR: Function interrupt attribute argument not supported!
|
|
define void @isr_user() #0 {
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { "interrupt"="foo" }
|