[DWARF] Remove collectChildrenAddressRanges (NFC)

The last use was removed on Dec 21, 2018 in commit
c3f30a7fc6.
This commit is contained in:
Kazu Hirata 2021-08-08 08:57:32 -07:00
parent 400cd6d2f0
commit d9c9d13365
2 changed files with 0 additions and 25 deletions

View File

@ -220,16 +220,6 @@ public:
/// information is available. /// information is available.
Expected<DWARFAddressRangesVector> getAddressRanges() const; Expected<DWARFAddressRangesVector> getAddressRanges() const;
/// Get all address ranges for any DW_TAG_subprogram DIEs in this DIE or any
/// of its children.
///
/// Get the hi/low PC range if both attributes are available or exrtracts the
/// non-contiguous address ranges from the DW_AT_ranges attribute for this DIE
/// and all children.
///
/// \param Ranges the addres range vector to fill in.
void collectChildrenAddressRanges(DWARFAddressRangesVector &Ranges) const;
bool addressRangeContainsAddress(const uint64_t Address) const; bool addressRangeContainsAddress(const uint64_t Address) const;
Expected<DWARFLocationExpressionsVector> Expected<DWARFLocationExpressionsVector>

View File

@ -483,21 +483,6 @@ Expected<DWARFAddressRangesVector> DWARFDie::getAddressRanges() const {
return DWARFAddressRangesVector(); return DWARFAddressRangesVector();
} }
void DWARFDie::collectChildrenAddressRanges(
DWARFAddressRangesVector &Ranges) const {
if (isNULL())
return;
if (isSubprogramDIE()) {
if (auto DIERangesOrError = getAddressRanges())
llvm::append_range(Ranges, DIERangesOrError.get());
else
llvm::consumeError(DIERangesOrError.takeError());
}
for (auto Child : children())
Child.collectChildrenAddressRanges(Ranges);
}
bool DWARFDie::addressRangeContainsAddress(const uint64_t Address) const { bool DWARFDie::addressRangeContainsAddress(const uint64_t Address) const {
auto RangesOrError = getAddressRanges(); auto RangesOrError = getAddressRanges();
if (!RangesOrError) { if (!RangesOrError) {