[DWARFDebugRnglists] Add a callback-based version of the getAbsoluteRanges function
authorPavel Labath <pavel@labath.sk>
Tue, 26 Nov 2019 09:40:30 +0000 (10:40 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 4 Dec 2019 09:35:57 +0000 (10:35 +0100)
commitd34927e7dbcf77a6c0d1ab4e39158bc1f90c18f2
treeef5de98a1e970a1411c23c8126cf1d2a31da6136
parentc3d05c1b5209122dbb18e2d7126c14359b6dfa90
[DWARFDebugRnglists] Add a callback-based version of the getAbsoluteRanges function

Summary:
The dump() function already accepts a callback. This makes
getAbsoluteRanges do the same. The existing DWARFUnit overload is
implemented on top of the new function.

This enables usage of the debug_rnglists parser from within lldb (which
has it's own dwarf parser).

Reviewers: dblaikie, JDevlieghere, aprantl

Subscribers: hiraditya, probinson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70952
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp