llvm-dwarfdump: Don't try to parse a debug_loclist contribution if this CU has no...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Apr 2020 22:17:24 +0000 (15:17 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Apr 2020 22:54:13 +0000 (15:54 -0700)
commit467c2514eb82aef4ec394d1dca5f4de11d33a830
treedb71a8647207a95279a2d1a7494bebf18adc2b6e
parent021a333bfca363ecb672d22dcff6295d4ecee3b7
llvm-dwarfdump: Don't try to parse a debug_loclist contribution if this CU has no DW_AT_loclists_base

llvm-dwarfdump was trying to parse debug_loclists even in the absence of
a loclists_base if there was a loclists section at all.
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_loclists_nouse.s [new file with mode: 0644]