There are a few places where we use report_fatal_error when the input is broken. Currently, this function always crashes LLVM with an abort signal, which then triggers the backtrace printing code. I think this is excessive, as wrong input shouldn't give a link to LLVM's github issue URL and tell users to file a bug report. We shouldn't print a stack trace either. This patch changes report_fatal_error so it uses exit() rather than abort() when its argument GenCrashDiag=false. Reviewed by: nikic, MaskRay, RKSimon Differential Revision: https://reviews.llvm.org/D126550
10 lines
270 B
LLVM
10 lines
270 B
LLVM
; RUN: llc -march=mipsel -mcpu=mips32r6 < %s | FileCheck %s
|
|
; RUN: not llc -march=mipsel -mcpu=mips32r6 -mattr=+dsp < %s 2>&1 | FileCheck --check-prefix=DSP %s
|
|
|
|
; CHECK: foo:
|
|
; DSP: MIPS32r6 is not compatible with the DSP ASE
|
|
|
|
define void @foo() nounwind {
|
|
ret void
|
|
}
|