Skip to content

Commit

Permalink
Add override for ClangDiagnosticHandler::isAnyRemarkEnabled()
Browse files Browse the repository at this point in the history
This is used by the new closure-based variant of
OptimizationRemarkEmitter::emit().

llvm-svn: 313693
  • Loading branch information
anemet committed Sep 19, 2017
1 parent b292c25 commit 3ac802a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clang/lib/CodeGen/CodeGenAction.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3ac802a

Please sign in to comment.