summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-05-30 21:45:59 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-05-30 21:45:59 +0000
commit6ada11f13466a758597f912156be47ffca2e1408 (patch)
tree674f255cda23a10d29d2f08eba7622a101b28d5b /clang/lib/CodeGen/CodeGenAction.cpp
parent31f1939848397e52617506e1a5af8035f4405a82 (diff)
downloadbcm5719-llvm-6ada11f13466a758597f912156be47ffca2e1408.tar.gz
bcm5719-llvm-6ada11f13466a758597f912156be47ffca2e1408.zip
[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 llvm-svn: 362160
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index 1f61dc37834..7671010fc98 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -279,7 +279,8 @@ namespace clang {
}
Ctx.setRemarkStreamer(llvm::make_unique<RemarkStreamer>(
- CodeGenOpts.OptRecordFile, OptRecordFile->os()));
+ CodeGenOpts.OptRecordFile,
+ llvm::make_unique<remarks::YAMLSerializer>(OptRecordFile->os())));
if (!CodeGenOpts.OptRecordPasses.empty())
if (Error E = Ctx.getRemarkStreamer()->setFilter(
OpenPOWER on IntegriCloud