]> granicus.if.org Git - llvm/commit
[DWARF] Fix referencing Range List Tables from CUs for DWARF64.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 5 Sep 2019 07:02:28 +0000 (07:02 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 5 Sep 2019 07:02:28 +0000 (07:02 +0000)
commit7214b3f52885ad5351fed6d75535d229334aaac9
tree58b7a300358a87cf8892f9881e70344d605af9da
parent5d5cff4a1493ef967d42cd842d00d3c316b54c3d
[DWARF] Fix referencing Range List Tables from CUs for DWARF64.

As DW_AT_rnglists_base points after the header and headers have
different sizes for DWARF32 and DWARF64, we have to use the format
of the CU to adjust the offset correctly in order to extract
the referenced range list table.

The patch also changes the type of RangeSectionBase because in DWARF64
it is 8-bytes long.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371016 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/DebugInfo/DWARF/DWARFUnit.cpp
test/DebugInfo/X86/dwarfdump-rnglists-dwarf64.s [new file with mode: 0644]