[ObjectYAML] Pull DWARF support into DWARFYAML namespace
authorChris Bieneman <beanz@apple.com>
Wed, 7 Dec 2016 21:26:32 +0000 (21:26 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 7 Dec 2016 21:26:32 +0000 (21:26 +0000)
commit79e60eb94880f5beac5c69fb2e42393fec6c279b
treeafe760a9a3b99db858b9b27453896ae45c4381c4
parent50db7f416c5442a4b033628b7ef73377f621f7ec
[ObjectYAML] Pull DWARF support into DWARFYAML namespace

Since DWARF formatting is agnostic to the object file it is stored in, it doesn't make sense for this to be in the MachOYAML implementation. Pulling it into its own namespace means we could modify the ELF and COFF YAML tools to emit DWARF as well.

In a follow-up patch I will better abstract this in obj2yaml and yaml2obj so that the DWARF bits in the tools can be re-used too.

llvm-svn: 288984
llvm/include/llvm/ObjectYAML/DWARFYAML.h [new file with mode: 0644]
llvm/include/llvm/ObjectYAML/MachOYAML.h
llvm/lib/ObjectYAML/CMakeLists.txt
llvm/lib/ObjectYAML/DWARFYAML.cpp [new file with mode: 0644]
llvm/lib/ObjectYAML/MachOYAML.cpp
llvm/tools/obj2yaml/macho2yaml.cpp