[DebugInfo] Dump length of CUs and TUs according to the DWARF format (3/8).
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 19 May 2020 06:35:20 +0000 (13:35 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 19 May 2020 06:35:20 +0000 (13:35 +0700)
commit0db1684b7435201e6b30236e6334a618fcfa6771
tree409b70f7108a5c058521ffd90a662e25ebb517dd
parentf92a55451655934a08b7020b45e7deef46808f4b
[DebugInfo] Dump length of CUs and TUs according to the DWARF format (3/8).

The patch changes dumping of the unit_length field in a unit header so
that it is printed as a 16-digit hex value if the unit is in the DWARF64
format.

Differential Revision: https://reviews.llvm.org/D79997
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
llvm/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
llvm/test/DebugInfo/X86/dwp-dwarf64.s
llvm/test/tools/llvm-dwarfdump/X86/debug_info_min_dwarf64.s
llvm/test/tools/llvm-dwarfdump/X86/typeunit-v4-dwarf64.s
llvm/test/tools/llvm-dwarfdump/X86/typeunit-v5-dwarf64.s