[DWARF] Fix referencing Range List Tables from CUs for DWARF64.
commitcc3140cf7fe37c428ca069e731376cf8f91e6261
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 5 Sep 2019 07:02:28 +0000 (5 07:02 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 5 Sep 2019 07:02:28 +0000 (5 07:02 +0000)
tree58b7a300358a87cf8892f9881e70344d605af9da
parent4197b4ce98aa81124a9d5c76a72395ea403c73ed
[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]