[llvm] e382f59 - [DWARF] Remove findRange (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 9 07:27:20 PDT 2021


Author: Kazu Hirata
Date: 2021-08-09T07:27:04-07:00
New Revision: e382f59605fae42d773667786a7513383b3f6c26

URL: https://github.com/llvm/llvm-project/commit/e382f59605fae42d773667786a7513383b3f6c26
DIFF: https://github.com/llvm/llvm-project/commit/e382f59605fae42d773667786a7513383b3f6c26.diff

LOG: [DWARF] Remove findRange (NFC)

The last use was removed on Apr 15, 2019 in commit
f56a436891e998363bcc02ea09a58d38e0b39da3.

Added: 
    

Modified: 
    llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
index 93d7e2b563fd..161a4f8f8f06 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
@@ -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
@@ -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.


        


More information about the llvm-commits mailing list