diff options
author | Adam Nemet <anemet@apple.com> | 2017-09-19 23:00:59 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-09-19 23:00:59 +0000 |
commit | 3ac802a1f65f71c739f58c2f49ee967e99ba3170 (patch) | |
tree | 39f00260c9a3972180bc0f198c2f303733cdfde5 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | b292c259665df700442f47f430d0e4b4edd818cb (diff) | |
download | bcm5719-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.cpp | 6 |
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; |