diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-12 20:54:18 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-12 20:54:18 +0000 |
commit | 1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4 (patch) | |
tree | f6a92a25a34cae50f0d0795bdb2a8f4737d5f85d /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 7e44a8440c55a3592901c3c2290cf25ca5c78619 (diff) | |
download | bcm5719-llvm-1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4.tar.gz bcm5719-llvm-1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4.zip |
Revert "[Remarks] Add -foptimization-record-passes to filter remark emission"
This reverts commit 20fff32b7d1f1a1bd417b22aa9f26ededd97a3e5.
llvm-svn: 355976
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index cab3a6bc32b..f59adcd3fb9 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -19,7 +19,6 @@ #include "clang/Basic/TargetInfo.h" #include "clang/CodeGen/BackendUtil.h" #include "clang/CodeGen/ModuleBuilder.h" -#include "clang/Driver/DriverDiagnostic.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Lex/Preprocessor.h" @@ -281,12 +280,6 @@ namespace clang { Ctx.setRemarkStreamer(llvm::make_unique<RemarkStreamer>( CodeGenOpts.OptRecordFile, OptRecordFile->os())); - if (!CodeGenOpts.OptRecordPasses.empty()) - if (Error E = Ctx.getRemarkStreamer()->setFilter( - CodeGenOpts.OptRecordPasses)) - Diags.Report(diag::err_drv_optimization_remark_pattern) - << toString(std::move(E)) << CodeGenOpts.OptRecordPasses; - if (CodeGenOpts.getProfileUse() != CodeGenOptions::ProfileNone) Ctx.setDiagnosticsHotnessRequested(true); } |