[PATCH] D141150: [DWARFLinker] Rewrite CU DW_AT_low_pc/high_pc pairs into DW_AT_ranges

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 10:45:18 PST 2023


JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, friss, avl, jasonmolenda.
Herald added subscribers: ormris, steven_wu, hiraditya.
Herald added a project: All.
JDevlieghere requested review of this revision.
Herald added a project: LLVM.

For small gapless programs, clang emits single-value `DW_AT_low_pc/high_pc` in the compile unit. For the debugger, parsing DW_AT_ranges is much faster than having to decode all the compile units. This patch makes the DWARF linker (dsymutil) rewrite DW_AT_low_pc/high_pc pairs into DW_AT_ranges for accelerated access.

rdar://56096523


https://reviews.llvm.org/D141150

Files:
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/test/tools/dsymutil/ARM/obfuscated.test
  llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test
  llvm/test/tools/dsymutil/X86/dead-stripped.cpp
  llvm/test/tools/dsymutil/X86/inlined-static-variable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141150.486931.patch
Type: text/x-patch
Size: 9336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230106/204d229f/attachment.bin>


More information about the llvm-commits mailing list