[all-commits] [llvm/llvm-project] 1fbe8a: [DWARF] Add support for parsing/dumping section in...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Dec 3 02:48:27 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fbe8a82e1ea0168ee10079a18140135222d1d2c
      https://github.com/llvm/llvm-project/commit/1fbe8a82e1ea0168ee10079a18140135222d1d2c
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2019-12-03 (Tue, 03 Dec 2019)

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

  Log Message:
  -----------
  [DWARF] Add support for parsing/dumping section indices in location lists

Summary:
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.

Reviewers: dblaikie, JDevlieghere, aprantl, SouraVX

Subscribers: hiraditya, llvm-commits, probinson

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70540




More information about the All-commits mailing list