[PATCH] D70540: [DWARF] Add support for parsing/dumping section indices in location lists

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 07:21:39 PST 2019


labath created this revision.
labath added reviewers: dblaikie, JDevlieghere, aprantl, SouraVX.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This does exactly what it says on the box. The only small gotcha is the
section index computation for offset_pair entries, which can use either
the base address section, or the section from the offset_pair entry.
This is to support both the cases where the base address is relocated
(points to the base of the CU, typically), and the case where the base
address is a constant (typically zero) and relocations are on the
offsets themselves.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70540

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
  llvm/test/DebugInfo/X86/dwarfdump-debug-loc-simple.test
  llvm/test/tools/llvm-dwarfdump/X86/debug_loclists.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70540.230455.patch
Type: text/x-patch
Size: 18729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191121/96822329/attachment.bin>


More information about the llvm-commits mailing list