[DWARFVerifier] Use the new location list api
authorPavel Labath <pavel@labath.sk>
Fri, 8 Nov 2019 14:33:54 +0000 (15:33 +0100)
committerPavel Labath <pavel@labath.sk>
Fri, 22 Nov 2019 09:08:39 +0000 (10:08 +0100)
commit01bb3b07c346c4215a83893d15f3c6022773ef83
tree315bdb8fb90d49c40dfb17a68f2ef1a8529330ee
parenta4cc895aee3b37e196f779883c8398a6cdd7ff68
[DWARFVerifier] Use the new location list api

Summary:
Instead of going to the debug_loc section directly, use new
DWARFDie::getLocations instead. This means that the code will now
automatically support debug_loclists sections.

This is the last usage of the old debug_loc methods, and they can now be
removed.

Reviewers: dblaikie, JDevlieghere, aprantl, SouraVX

Subscribers: hiraditya, probinson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70534
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness.s