Use DWARFDataExtractor::getInitialLength in debug_aranges
authorPavel Labath <pavel@labath.sk>
Mon, 2 Mar 2020 11:48:59 +0000 (12:48 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 4 Mar 2020 12:01:07 +0000 (13:01 +0100)
commiteb2b17eea7785bb790dab11cff1e3365cd3218cc
tree56d2bb16c1658cb3c810690e1c66f20bfb0fbfdc
parent38385630adb072c65882f1a18a4e634dcba9ff46
Use DWARFDataExtractor::getInitialLength in debug_aranges

Summary:
getInitialLength is a *DWARF*DataExtractor method so I had to "upgrade"
some DataExtractors to be able to make use of it.

Reviewers: ikudrin, jhenderson, probinson

Subscribers: aprantl, hiraditya, llvm-commits, dblaikie

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75535
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
llvm/tools/obj2yaml/dwarf2yaml.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDebugArangeSetTest.cpp