Skip to content

Commit

Permalink
[DWARF] Remove findRange (NFC)
Browse files Browse the repository at this point in the history
The last use was removed on Apr 15, 2019 in commit
f56a436.
  • Loading branch information
kazutakahirata committed Aug 9, 2021
1 parent c82ba4b commit e382f59
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
Expand Up @@ -49,8 +49,6 @@ class DWARFVerifier {
DieRangeInfo(std::vector<DWARFAddressRange> Ranges)
: Ranges(std::move(Ranges)) {}

typedef std::vector<DWARFAddressRange>::const_iterator
address_range_iterator;
typedef std::set<DieRangeInfo>::const_iterator die_range_info_iterator;

/// Inserts the address range. If the range overlaps with an existing
Expand All @@ -62,16 +60,6 @@ class DWARFVerifier {
/// children address ranges must all be contained in.
Optional<DWARFAddressRange> insert(const DWARFAddressRange &R);

/// Finds an address range in the sorted vector of ranges.
address_range_iterator findRange(const DWARFAddressRange &R) const {
auto Begin = Ranges.begin();
auto End = Ranges.end();
auto Iter = std::upper_bound(Begin, End, R);
if (Iter != Begin)
--Iter;
return Iter;
}

/// Inserts the address range info. If any of its ranges overlaps with a
/// range in an existing range info, the range info is *not* added and an
/// iterator to the overlapping range info.
Expand Down

0 comments on commit e382f59

Please sign in to comment.