llvm-6502/tools
Duncan P. N. Exon Smith 04d2186546 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218784 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-01 18:36:03 +00:00
..
bugpoint
bugpoint-passes
gold LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
llc
lli [MCJIT] Remove a few more references to JITMemoryManager that survived r218316. 2014-09-23 17:10:24 +00:00
llvm-ar
llvm-as
llvm-bcanalyzer
llvm-c-test Extend C disassembler API to allow specifying target features 2014-09-30 16:31:40 +00:00
llvm-config
llvm-cov llvm-cov/CoverageReport.cpp: Quick fix for msvcrt, since width specifier "z" is unavailable. 2014-10-01 00:29:26 +00:00
llvm-diff
llvm-dis
llvm-dwarfdump
llvm-extract Add doInitialization/doFinalization to DataLayoutPass. 2014-09-10 21:27:43 +00:00
llvm-jitlistener [MCJIT] Remove a few more references to JITMemoryManager that survived r218316. 2014-09-23 17:10:24 +00:00
llvm-link Invert the condition to have a single return. 2014-08-26 18:03:35 +00:00
llvm-lto LTO: Ignore disabled diagnostic remarks 2014-10-01 18:36:03 +00:00
llvm-mc
llvm-mcmarkup
llvm-nm LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
llvm-objdump [llvm-objdump] switch some uses of format() to format_hex() and left_justify() 2014-09-30 00:19:58 +00:00
llvm-profdata
llvm-readobj Object: BSS/virtual sections don't have contents 2014-09-26 22:32:16 +00:00
llvm-rtdyld
llvm-shlib
llvm-size Use the simpler sys::fs:;exists. NFC. 2014-09-11 18:44:26 +00:00
llvm-stress
llvm-symbolizer
llvm-vtabledump llvm-vtabledump: Further simplification 2014-09-26 22:32:19 +00:00
lto Remove definition of LLVM_VERSION_INFO; this macro is not used by any of the 2014-09-26 21:53:12 +00:00
macho-dump
msbuild MSBuild integration: fix the loop in install.bat 2014-09-30 22:30:06 +00:00
obj2yaml
opt
verify-uselistorder
yaml2obj WinCOFFObjectWriter: optimize the string table for common suffices 2014-09-29 22:43:20 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile