From ab22190962dce5920dbb65bbbee28ddb1cc63307 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Thu, 29 May 2014 16:19:27 +0000 Subject: Fix spurious remarks when -Weverything is used. With -Weverything, the backend remarks are enabled. This was causing spurious diagnostics for remarks that we don't yet handle (cf http://reviews.llvm.org/D3683). This will stop being a problem once http://reviews.llvm.org/D3683 is committed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209823 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/CodeGen/CodeGenAction.cpp') diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 3db1660b80..4bb3895108 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -461,6 +461,12 @@ void BackendConsumer::DiagnosticHandlerImpl(const DiagnosticInfo &DI) { // handler. There is no generic way of emitting them. OptimizationRemarkHandler(cast(DI)); return; + case llvm::DK_OptimizationRemarkMissed: + case llvm::DK_OptimizationRemarkAnalysis: + // TODO: Do nothing for now. The implementation of these + // two remarks is still under review (http://reviews.llvm.org/D3683). + // Remove this once that patch lands. + return; default: // Plugin IDs are not bound to any value as they are set dynamically. ComputeDiagRemarkID(Severity, backend_plugin, DiagID); -- cgit v1.2.3