diff options
| author | Chris Bieneman <beanz@apple.com> | 2017-03-06 20:52:12 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2017-03-06 20:52:12 +0000 |
| commit | 8f471f72d1ac97babdd8bb8addff9cc73b8b7313 (patch) | |
| tree | 013d2e75bce9ea8209df15021bd1a88ad322acca /llvm/lib/ObjectYAML/CMakeLists.txt | |
| parent | 23e323f284f5176303120198db6ae0530d724e99 (diff) | |
| download | bcm5719-llvm-8f471f72d1ac97babdd8bb8addff9cc73b8b7313.tar.gz bcm5719-llvm-8f471f72d1ac97babdd8bb8addff9cc73b8b7313.zip | |
[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
Diffstat (limited to 'llvm/lib/ObjectYAML/CMakeLists.txt')
| -rw-r--r-- | llvm/lib/ObjectYAML/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/CMakeLists.txt b/llvm/lib/ObjectYAML/CMakeLists.txt index ab3939e17d7..d0db0b11ef2 100644 --- a/llvm/lib/ObjectYAML/CMakeLists.txt +++ b/llvm/lib/ObjectYAML/CMakeLists.txt @@ -1,6 +1,7 @@ add_llvm_library(LLVMObjectYAML COFFYAML.cpp DWARFEmitter.cpp + DWARFVisitor.cpp DWARFYAML.cpp ELFYAML.cpp MachOYAML.cpp |

