From 6b622ebea01b3ece8b8e475f15c5ce16a4cdc9f8 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Wed, 6 Mar 2019 14:52:37 +0000 Subject: Revert "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer" This reverts commit 2e8c4997a2089f8228c843fd81b148d903472e02. Breaks bots. llvm-svn: 355511 --- llvm/lib/LTO/LTO.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index f6e34c5..8e0d532 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -24,7 +24,6 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Mangler.h" #include "llvm/IR/Metadata.h" -#include "llvm/IR/RemarkStreamer.h" #include "llvm/LTO/LTOBackend.h" #include "llvm/LTO/SummaryBasedOptimizations.h" #include "llvm/Linker/IRMover.h" @@ -1327,8 +1326,8 @@ lto::setupOptimizationRemarks(LLVMContext &Context, llvm::make_unique(Filename, EC, sys::fs::F_None); if (EC) return errorCodeToError(EC); - Context.setRemarkStreamer( - llvm::make_unique(Filename, DiagnosticFile->os())); + Context.setDiagnosticsOutputFile( + llvm::make_unique(DiagnosticFile->os())); DiagnosticFile->keep(); return std::move(DiagnosticFile); } -- cgit v1.1