r313693 - Add override for ClangDiagnosticHandler::isAnyRemarkEnabled()
Adam Nemet via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 19 16:00:59 PDT 2017
Author: anemet
Date: Tue Sep 19 16:00:59 2017
New Revision: 313693
URL: http://llvm.org/viewvc/llvm-project?rev=313693&view=rev
Log:
Add override for ClangDiagnosticHandler::isAnyRemarkEnabled()
This is used by the new closure-based variant of
OptimizationRemarkEmitter::emit().
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=313693&r1=313692&r2=313693&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Tue Sep 19 16:00:59 2017
@@ -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;
More information about the cfe-commits
mailing list