1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/CodeGen/MIR/Generic
Renato Golin 8761d9ca19 [llc] New diagnostic handler
Without a diagnostic handler installed, llc's behaviour is to exit on the first
error that it encounters. This is very different from the behaviour of clang
and other front ends, which try to gather as many errors as possible before
exiting.

This commit adds a diagnostic handler to llc, allowing it to find and report
more than one error. The old behaviour is preserved under a flag (-exit-on-error).

Some of the tests fail with the new diagnostic handler, so they have to use the
new flag in order to run under the previous behaviour. Some of these are known
bugs, others need further investigation. Ideally, we should fix the tests and
remove the flag at some point in the future.

Reapplied after fixing the LLDB build that was broken due to the new
DiagnosticSeverity in LLVMContext.h, and fixed an UB in the new change.

Patch by Diana Picus.

llvm-svn: 269655
2016-05-16 14:28:02 +00:00
..
basic-blocks.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
expected-colon-after-basic-block.mir
expected-mbb-reference-for-successor-mbb.mir
frame-info.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
function-missing-machine-function.mir
invalid-jump-table-kind.mir [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
lit.local.cfg
llvm-ir-error-reported.mir [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
llvmIR.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
llvmIRMissing.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
machine-basic-block-ir-block-reference.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
machine-basic-block-redefinition-error.mir
machine-basic-block-undefined-ir-block.mir
machine-basic-block-unknown-name.mir
machine-function-missing-body-error.mir
machine-function-missing-function.mir [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
machine-function-missing-name.mir [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
machine-function-redefinition-error.mir [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
machine-function.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
register-info.mir When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00