]> granicus.if.org Git - llvm/commit
[ObjectYAML] [DWARF] Abstract DWARF Initial Length values
authorChris Bieneman <beanz@apple.com>
Fri, 3 Mar 2017 21:11:55 +0000 (21:11 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 3 Mar 2017 21:11:55 +0000 (21:11 +0000)
commitad76c97fd9bb5cdd96251d62939a2b22d1ea8c1f
tree1885ee05544dbc5ee9b004cee62443afa9bb1c0d
parent999b4699656dcec7f4b6352e970614b8a19947d7
[ObjectYAML] [DWARF] Abstract DWARF Initial Length values

In the DWARF 4 Spec section 7.2.2, data in many DWARF sections, and some DWARF structures start with "Initial Length Values", which are a 32-bit length, and an optional 64-bit length if the 32 bit value == UINT32_MAX.

This patch abstracts the Initial Length type in YAML, and extends its use to all the DWARF structures that are supported in the DWARFYAML code that have Initial Length values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296911 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ObjectYAML/DWARFYAML.h
lib/ObjectYAML/DWARFEmitter.cpp
lib/ObjectYAML/DWARFYAML.cpp
test/ObjectYAML/MachO/DWARF-debug_aranges.yaml
test/ObjectYAML/MachO/DWARF-debug_info.yaml
test/ObjectYAML/MachO/DWARF-debug_line.yaml
test/ObjectYAML/MachO/DWARF-pubsections.yaml
tools/obj2yaml/dwarf2yaml.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp