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 /llvm/lib/LTO/LTO.cpp | |
parent | 7e44a8440c55a3592901c3c2290cf25ca5c78619 (diff) | |
download | llvm-1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4.zip llvm-1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4.tar.gz llvm-1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4.tar.bz2 |
Revert "[Remarks] Add -foptimization-record-passes to filter remark emission"
This reverts commit 20fff32b7d1f1a1bd417b22aa9f26ededd97a3e5.
llvm-svn: 355976
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 99318c1..f6e34c5 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1312,7 +1312,6 @@ Error LTO::runThinLTO(AddStreamFn AddStream, NativeObjectCache Cache) { Expected<std::unique_ptr<ToolOutputFile>> lto::setupOptimizationRemarks(LLVMContext &Context, StringRef LTORemarksFilename, - StringRef LTORemarksPasses, bool LTOPassRemarksWithHotness, int Count) { if (LTOPassRemarksWithHotness) Context.setDiagnosticsHotnessRequested(true); @@ -1330,11 +1329,6 @@ lto::setupOptimizationRemarks(LLVMContext &Context, return errorCodeToError(EC); Context.setRemarkStreamer( llvm::make_unique<RemarkStreamer>(Filename, DiagnosticFile->os())); - - if (!LTORemarksPasses.empty()) - if (Error E = Context.getRemarkStreamer()->setFilter(LTORemarksPasses)) - return std::move(E); - DiagnosticFile->keep(); return std::move(DiagnosticFile); } |