From aa3cc5e20a2514aad3787629e12bfc3f00f64e19 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 30 May 2019 21:45:59 +0000 Subject: [PATCH] [Remarks][NFC] Move the serialization to lib/Remarks Separate the remark serialization to YAML from the LLVM Diagnostics. This adds a new serialization abstraction: remarks::Serializer. It's completely independent from lib/IR and it provides an easy way to replace YAML by providing a new remarks::Serializer. Differential Revision: https://reviews.llvm.org/D62632 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362160 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 1f61dc3783..7671010fc9 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -279,7 +279,8 @@ namespace clang { } Ctx.setRemarkStreamer(llvm::make_unique( - CodeGenOpts.OptRecordFile, OptRecordFile->os())); + CodeGenOpts.OptRecordFile, + llvm::make_unique(OptRecordFile->os()))); if (!CodeGenOpts.OptRecordPasses.empty()) if (Error E = Ctx.getRemarkStreamer()->setFilter( -- 2.40.0