diff options
author | Chris Bieneman <beanz@apple.com> | 2017-03-03 21:11:55 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-03-03 21:11:55 +0000 |
commit | ad76c97fd9bb5cdd96251d62939a2b22d1ea8c1f (patch) | |
tree | 1885ee05544dbc5ee9b004cee62443afa9bb1c0d /unittests/DebugInfo/DWARF | |
parent | 999b4699656dcec7f4b6352e970614b8a19947d7 (diff) |
[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
Diffstat (limited to 'unittests/DebugInfo/DWARF')
-rw-r--r-- | unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp index 90dd688d51f..b6111e71c1a 100644 --- a/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp +++ b/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp @@ -1172,7 +1172,8 @@ TEST(DWARFDebugInfo, TestEmptyChildren) { " Children: DW_CHILDREN_yes\n" " Attributes:\n" "debug_info:\n" - " - Length: 9\n" + " - Length:\n" + " TotalLength: 9\n" " Version: 4\n" " AbbrOffset: 0\n" " AddrSize: 8\n" |