[dwarfdump][dwarf] Fix parsing of tu-index
authorAlexander Yermolovich <ayermolo@meta.com>
Wed, 19 Apr 2023 23:38:08 +0000 (16:38 -0700)
committerAlexander Yermolovich <ayermolo@meta.com>
Thu, 20 Apr 2023 18:42:24 +0000 (11:42 -0700)
commit3ba4d082da3dd6856887774fab694f81adc15a64
treee4c1d0c51743b217b53f54fca5a770fdabd8e6a8
parent06b8057cc285cd7567ed7aaf57875227b3ec53da
[dwarfdump][dwarf] Fix parsing of tu-index

Fixed issue where {tu,cu}-index fixup code for DWARF5 that would report an error when
fixup map is empty. Which is the case when seciton(s) are not over 4GB or
--manaully-generate-unit-index is not specified

Differential Revision: https://reviews.llvm.org/D148578
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/test/DebugInfo/X86/dwp-v5-tu-index.s