From 394ff15e8a3533cc72e38b32919a21fca13f4e8a Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Wed, 6 Mar 2019 14:52:37 +0000 Subject: [PATCH] Revert "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer" This reverts commit 2e8c4997a2089f8228c843fd81b148d903472e02. Breaks bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355511 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index f59adcd3fb..0b631f72e6 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -30,7 +30,6 @@ #include "llvm/IR/GlobalValue.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" -#include "llvm/IR/RemarkStreamer.h" #include "llvm/IRReader/IRReader.h" #include "llvm/Linker/Linker.h" #include "llvm/Pass.h" @@ -277,8 +276,8 @@ namespace clang { return; } - Ctx.setRemarkStreamer(llvm::make_unique( - CodeGenOpts.OptRecordFile, OptRecordFile->os())); + Ctx.setDiagnosticsOutputFile( + llvm::make_unique(OptRecordFile->os())); if (CodeGenOpts.getProfileUse() != CodeGenOptions::ProfileNone) Ctx.setDiagnosticsHotnessRequested(true); -- 2.40.0