[PATCH] D104341: API to get Address Offset Section

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 17:24:05 PDT 2021


ayermolo added a comment.

In D104341#2820734 <https://reviews.llvm.org/D104341#2820734>, @dblaikie wrote:

> Can you instead use the API more like the way llvm-symbolizer does - starting with the skeleton CU in the executable and it'll be able to load the dwp itself? (this codepath is already present and more tested, covers other sections like rnglists, etc, that you'll need too)

Hmm. I thought way below is it.

Only relevant code. DwCtx is context of binary.

  DWPContext = DwCtx->getDWOContext(opts::DWPPath.c_str());
  llvm::Optional<uint64_t> DWOId = DwarfUnit->getDWOId()
  DWARFCompileUnit *DWOCU = DWPContext.get()->getDWOCompileUnitForHash(*DWOId);

Let me poke around llvm-symbolizer some more. Last time I looked I don't remember seeing low level APIs, and more high level ones.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104341



More information about the llvm-commits mailing list