summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2017-09-19 23:00:59 +0000
committerAdam Nemet <anemet@apple.com>2017-09-19 23:00:59 +0000
commit3ac802a1f65f71c739f58c2f49ee967e99ba3170 (patch)
tree39f00260c9a3972180bc0f198c2f303733cdfde5 /clang/lib/CodeGen/CodeGenAction.cpp
parentb292c259665df700442f47f430d0e4b4edd818cb (diff)
downloadbcm5719-llvm-3ac802a1f65f71c739f58c2f49ee967e99ba3170.tar.gz
bcm5719-llvm-3ac802a1f65f71c739f58c2f49ee967e99ba3170.zip
Add override for ClangDiagnosticHandler::isAnyRemarkEnabled()
This is used by the new closure-based variant of OptimizationRemarkEmitter::emit(). llvm-svn: 313693
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 3873ef4eb58..b6caa50381e 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -67,6 +67,12 @@ namespace clang {
CodeGenOpts.OptimizationRemarkPattern->match(PassName));
}
+ bool isAnyRemarkEnabled() const override {
+ return (CodeGenOpts.OptimizationRemarkAnalysisPattern ||
+ CodeGenOpts.OptimizationRemarkMissedPattern ||
+ CodeGenOpts.OptimizationRemarkPattern);
+ }
+
private:
const CodeGenOptions &CodeGenOpts;
BackendConsumer *BackendCon;
OpenPOWER on IntegriCloud