Add support for DW_AT_ranges_base attribute
authorTamas Berghammer <tberghammer@google.com>
Thu, 15 Sep 2016 08:53:33 +0000 (08:53 +0000)
committerTamas Berghammer <tberghammer@google.com>
Thu, 15 Sep 2016 08:53:33 +0000 (08:53 +0000)
commit2540a553e5ab66c2fa15b52edc0c22669ef53f15
tree56d29b515178796099abd77ec992aaa86ba506e5
parent2cc4e3e04e2201d9404eae3e4e8c877c4e38ba13
Add support for DW_AT_ranges_base attribute

It is a new attribute emitted by clang as a GNU extension and will
be part of Dwarf5. The purpose of the attribute is to specify a compile
unit level base value for all DW_AT_ranges to reduce the number of
relocations have to be done by the linker.

Fixes (at least partially): https://llvm.org/pr28826

Differential revision: https://reviews.llvm.org/D24514

llvm-svn: 281595
lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py
lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/decls.h
lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/file1.cpp
lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/file2.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp