Change DW_LLE_baseaddr to DW_LLE_baseaddrx in .debug_loclist section
authorShubham Sandeep Rastogi <srastogi22@apple.com>
Thu, 20 Jul 2023 18:27:16 +0000 (11:27 -0700)
committerShubham Sandeep Rastogi <srastogi22@apple.com>
Sat, 22 Jul 2023 17:41:44 +0000 (10:41 -0700)
commitab7874e945f0ecba4a62605950503b4c5d830c0b
treea482638cebc901ceff20f87c0c2223e0a3854dbb
parentc5a45b2515e6d2c3d29e86ad41c9be5a88f172d4
Change DW_LLE_baseaddr to DW_LLE_baseaddrx in .debug_loclist section

With https://reviews.llvm.org/D154638, the ability to emit a .debug_addr
section has been added to dsymutil. With this, instead of emitting a
DW_LLE_baseaddr in the .debug_loclist section, a DW_LLE_baseaddrx can be
emitted instead, which will allow for more indirection.

Differetial Revision: https://reviews.llvm.org/D155724
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/include/llvm/DWARFLinker/DWARFStreamer.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/lib/DWARFLinker/DWARFStreamer.cpp
llvm/test/tools/dsymutil/ARM/dwarf5-dwarf4-combination-macho.test
llvm/test/tools/dsymutil/ARM/dwarf5-macho.test
llvm/test/tools/dsymutil/X86/dwarf5-loclists.test
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-loclists.test