1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/LTO
Duncan P. N. Exon Smith 236c4250e7 LTO: Ignore disabled diagnostic remarks
r206400 and r209442 added remarks that are disabled by default.
However, if a diagnostic handler is registered, the remarks are sent
unfiltered to the handler.  This is the right behaviour for clang, since
it has its own filters.

However, the diagnostic handler exposed in the LTO API receives only the
severity and message.  It doesn't have the information to filter by pass
name.  For LTO, disabled remarks should be filtered by the producer.

I've changed `LLVMContext::setDiagnosticHandler()` to take a `bool`
argument indicating whether to respect the built-in filters.  This
defaults to `false`, so other consumers don't have a behaviour change,
but `LTOCodeGenerator::setDiagnosticHandler()` sets it to `true`.

To make this behaviour testable, I added a `-use-diagnostic-handler`
command-line option to `llvm-lto`.

This fixes PR21108.

llvm-svn: 218784
2014-10-01 18:36:03 +00:00
..
Inputs LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
attrs.ll
bcsection.ll Try to fix i686-cygming bots. 2014-09-18 22:56:00 +00:00
cfi_endproc.ll
current-section.ll
diagnostic-handler-remarks.ll LTO: Ignore disabled diagnostic remarks 2014-10-01 18:36:03 +00:00
jump-table-type.ll Set missing options in LTOCodeGenerator::setTargetOptions. 2014-06-19 22:14:12 +00:00
keep-used-puts-during-instcombine.ll IR: Don't allow non-default visibility on local linkage 2014-05-07 22:57:20 +00:00
linkonce_odr_func.ll
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
no-undefined-puts-when-implemented.ll Change the default input for llvm-nm to be a.out instead of standard input 2014-06-23 20:27:53 +00:00
private-symbol.ll
runtime-library.ll
symver-asm.ll
triple-init.ll