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
Paths
| Differential D47152
[DebugInfo] Use absolute addresses in location lists ClosedPublic Authored by JDevlieghere on May 21 2018, 10:29 AM.
Details Summary Rather than relying on the user to do the address calculating in rdar://problem/38513870
Diff Detail
Event Timelinedblaikie added inline comments.
This revision is now accepted and ready to land.May 21 2018, 10:56 AM JDevlieghere added inline comments.
Closed by commit rL332873: [DebugInfo] Use absolute addresses in location lists (authored by JDevlieghere). · Explain WhyMay 21 2018, 12:41 PM This revision was automatically updated to reflect the committed changes. JDevlieghere marked an inline comment as done.
Revision Contents
Diff 147813 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
|
Might be able to replace "BaseAddr" with "U->getBaseAddress().getValueOr(0)" ?