This is an archive of the discontinued LLVM Phabricator instance.

MinidumpYAML: move serialization code to MinidumpEmitter.cpp
ClosedPublic

Authored by labath on Aug 20 2019, 7:03 AM.

Details

Summary

The code for serializing minidumps was living in MinidumpYAML.cpp
so that it would be accessible from unit tests. While this had its
advantages, it was also unfortunate because it broke symmetry with all
other yaml2obj serializers.

Fortunately, nowadays all of yaml2obj is a library, so we don't need to
do anything special. This patch improves the code consistency by moving
the serialization code to MinidumpEmitter.cpp to match the style used in
other backends. It also removes the writeAsBinary entry point in favor
of the more general convertYAML interface.

This patch is just massaging the code a bit. There shouldn't be any
functional change here.

Diff Detail

Event Timeline

labath created this revision.Aug 20 2019, 7:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2019, 7:03 AM
This revision is now accepted and ready to land.Aug 20 2019, 7:45 AM
This revision was automatically updated to reflect the committed changes.