HomePhabricator

[ObjectYAML] NFC. Refactor DWARFYAML CompileUnit dump code

Authored by beanz on Mar 6 2017, 12:52 PM.

Description

[ObjectYAML] NFC. Refactor DWARFYAML CompileUnit dump code

Summary: This patch refactors the DWARFYAML code for dumping compile units to use a visitor pattern. Using this design will, in the future, enable the DWARF YAML code to perform analysis and mutations of the DWARF DIEs. An example of such mutations would be calculating the length of a compile unit and updating the CU's Length field before writing the DIE. This support will make it easier to craft or modify DWARF tests by hand.

Reviewers: lhames

Subscribers: mgorny, fhahn, jgosnell, aprantl, llvm-commits

Differential Revision: https://reviews.llvm.org/D30357

llvm-svn: 297067

Details

Committed
beanzMar 6 2017, 12:52 PM
Differential Revision
D30357: [ObjectYAML] NFC. Refactor DWARFYAML CompileUnit dump code
Parents
rG23e323f284f5: Mark two any_cast issues as complete
Branches
Unknown
Tags
Unknown