aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-01 18:36:03 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-01 18:36:03 +0000
commit30c9242caad0f82daedb838d73d8311e82b9201b (patch)
treedf8e941e2ce9e084594f67a817db3d3a02c0e87e /llvm/lib/CodeGen/MachineInstr.cpp
parent847b37ec8aba3bf05db304358bc01beb46b16d17 (diff)
downloadllvm-30c9242caad0f82daedb838d73d8311e82b9201b.zip
llvm-30c9242caad0f82daedb838d73d8311e82b9201b.tar.gz
llvm-30c9242caad0f82daedb838d73d8311e82b9201b.tar.bz2
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions