[PATCH] D46628: [ELF] Add --strip-debug-non-line option

Lucian Adrian Grijincu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 06:32:13 PDT 2019


luciang added a comment.

Here's where we use aranges: instead of linearly scanning .debug_info you can jump to the correct CU DIE using info from .debug_aranges

- init: https://github.com/facebook/folly/blob/master/folly/experimental/symbolizer/Dwarf.cpp#L322
- use aranges to jump to CU DIE: https://github.com/facebook/folly/blob/master/folly/experimental/symbolizer/Dwarf.cpp#L583-L592
- linear scan as fallback: https://github.com/facebook/folly/blob/master/folly/experimental/symbolizer/Dwarf.cpp#L605-L610


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D46628/new/

https://reviews.llvm.org/D46628





More information about the llvm-commits mailing list