summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.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 /llvm/tools/opt/opt.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 'llvm/tools/opt/opt.cpp')
-rw-r--r--llvm/tools/opt/opt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 2119cc0183f..7053c2deb37 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -563,7 +563,8 @@ int main(int argc, char **argv) {
return 1;
}
Context.setRemarkStreamer(llvm::make_unique<RemarkStreamer>(
- RemarksFilename, OptRemarkFile->os()));
+ RemarksFilename,
+ llvm::make_unique<remarks::YAMLSerializer>(OptRemarkFile->os())));
if (!RemarksPasses.empty())
if (Error E = Context.getRemarkStreamer()->setFilter(RemarksPasses)) {
OpenPOWER on IntegriCloud