summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-05-29 16:19:27 +0000
committerDiego Novillo <dnovillo@google.com>2014-05-29 16:19:27 +0000
commit9c89ff1945784b9dd121c155a4510d9e9e63577a (patch)
treeff8f9b735bb3328a18035eb8416a0e06317da499 /clang/lib/CodeGen/CodeGenAction.cpp
parent4d16e1192254da457d419b948a3444c56b52b7ed (diff)
downloadbcm5719-llvm-9c89ff1945784b9dd121c155a4510d9e9e63577a.tar.gz
bcm5719-llvm-9c89ff1945784b9dd121c155a4510d9e9e63577a.zip
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. llvm-svn: 209823
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index 3db1660b805..4bb3895108d 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/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<DiagnosticInfoOptimizationRemark>(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);
OpenPOWER on IntegriCloud