[ObjectYAML] Support for DWARF debug_info section
authorChris Bieneman <beanz@apple.com>
Thu, 22 Dec 2016 22:44:27 +0000 (22:44 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 22 Dec 2016 22:44:27 +0000 (22:44 +0000)
commite0e451d9278e12f5d6411565e0cb17b9c57362ce
treee231a8ec569f4d5451911996e3fc082a614ee733
parent1277833aa63056342f458d4b2f5fa549fb241749
[ObjectYAML] Support for DWARF debug_info section

This patch adds support for YAML<->DWARF for debug_info sections.

This re-lands r290147, reverted in 290148, re-landed in r290204 after fixing the issue that caused bots to fail (thank you UBSan!), and reverted again in r290209 due to failures on big endian systems.

After adding support for preserving endianness, this should be good now.

llvm-svn: 290386
llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/include/llvm/ObjectYAML/DWARFYAML.h
llvm/include/llvm/ObjectYAML/MachOYAML.h
llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/dwarf2yaml.cpp
llvm/tools/yaml2obj/yaml2dwarf.cpp
llvm/tools/yaml2obj/yaml2macho.cpp
llvm/tools/yaml2obj/yaml2obj.h