[PATCH] D149208: [DebugInfo]Lazy parse abbrevs when symbolizing

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 15:19:04 PDT 2023


dblaikie created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dblaikie requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This speeds up llvm-symbolizer on code without .debug_aranges - we don't
need to parse all the abbrevs for every CU, just usually the first
abbrev for most CUs, then more abbrevs for any CU we go look into for
symbolizing.

I don't think this makes enough of a difference to worry too much about - but
throwing it out there since I wrote it while exploring things.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149208

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
  llvm/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
  llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149208.516954.patch
Type: text/x-patch
Size: 6655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230425/7edd5104/attachment.bin>


More information about the llvm-commits mailing list