forked from OSchip/llvm-project
[DWARF] Remove findRange (NFC)
The last use was removed on Apr 15, 2019 in commit
f56a436891
.
This commit is contained in:
parent
c82ba4b820
commit
e382f59605
|
@ -49,8 +49,6 @@ public:
|
|||
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
|
||||
|
@ -62,16 +60,6 @@ public:
|
|||
/// 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.
|
||||
|
|
Loading…
Reference in New Issue