[DebugInfo] Use absolute addresses in location lists
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 21 May 2018 19:36:54 +0000 (19:36 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 21 May 2018 19:36:54 +0000 (19:36 +0000)
commitc111382aa8b39c68e32382448c28a8528d775700
tree205b5bc6ecb72d9a26e6b507c4a8ee5f5075a32f
parenta010b3c9dc7a05a6e7c4fcb79f9453b1d7d60c78
[DebugInfo] Use absolute addresses in location lists

Rather than relying on the user to do the address calculating in
DW_AT_location we should just dump the absolute address.

rdar://problem/38513870

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

llvm-svn: 332873
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/DebugInfo/X86/debug-loc-offset.ll
llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test
llvm/test/tools/dsymutil/X86/basic-lto-linking-x86.test