diff options
| author | Fangrui Song <maskray@google.com> | 2019-04-11 10:25:41 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-04-11 10:25:41 +0000 |
| commit | 71cce580b91c8333880addb2df9eca09d97d8bc8 (patch) | |
| tree | 0299ad2f098e71c3728a521cf7ff6e5d31a34a81 /llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | |
| parent | 2050dff996a27b9fdb9b7365fe8659383de0824d (diff) | |
| download | bcm5719-llvm-71cce580b91c8333880addb2df9eca09d97d8bc8.tar.gz bcm5719-llvm-71cce580b91c8333880addb2df9eca09d97d8bc8.zip | |
Use llvm::lower_bound. NFC
llvm-svn: 358161
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index 6bac12f765d..7c80b3bb3e9 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -57,8 +57,8 @@ void DWARFDebugLoc::LocationList::dump(raw_ostream &OS, bool IsLittleEndian, DWARFDebugLoc::LocationList const * DWARFDebugLoc::getLocationListAtOffset(uint64_t Offset) const { - auto It = std::lower_bound( - Locations.begin(), Locations.end(), Offset, + auto It = llvm::lower_bound( + Locations, Offset, [](const LocationList &L, uint64_t Offset) { return L.Offset < Offset; }); if (It != Locations.end() && It->Offset == Offset) return &(*It); @@ -213,8 +213,8 @@ void DWARFDebugLoclists::parse(DataExtractor data, unsigned Version) { DWARFDebugLoclists::LocationList const * DWARFDebugLoclists::getLocationListAtOffset(uint64_t Offset) const { - auto It = std::lower_bound( - Locations.begin(), Locations.end(), Offset, + auto It = llvm::lower_bound( + Locations, Offset, [](const LocationList &L, uint64_t Offset) { return L.Offset < Offset; }); if (It != Locations.end() && It->Offset == Offset) return &(*It); |

