DebugInfo: Use loclistx for DWARFv5 location lists to reduce the number of relocations
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 12 Nov 2019 22:15:37 +0000 (14:15 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 16 Nov 2019 02:51:13 +0000 (18:51 -0800)
commit77cfcd75092b57693d40123a013e59295634a945
tree1199d6a4ddee2a0351d11eacd99f2ec373a8f156
parent97c742e6b74e731afdef74dd5f8366ce883e0520
DebugInfo: Use loclistx for DWARFv5 location lists to reduce the number of relocations

This only implements the non-dwo part, but loclistx is necessary to use
location lists in DWARFv5, so it's a precursor to that work - and
generally reduces relocations (only using one reloc, then
indexes/relative offsets for all location list references) in non-split
DWARF.
llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/CodeGen/X86/debug-loclists.ll