diff options
| author | Ali Tamur <tamur@google.com> | 2019-04-11 17:35:20 +0000 |
|---|---|---|
| committer | Ali Tamur <tamur@google.com> | 2019-04-11 17:35:20 +0000 |
| commit | 7822b4618853a41aaa5ee3a7f14e0e32b1d29a64 (patch) | |
| tree | 16ff223e5739891d3b6f700cb4f6daa63ad7d43a /llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | |
| parent | 528b01e998474ac3ada4c5dcc1b99c1d594b0d37 (diff) | |
| download | bcm5719-llvm-7822b4618853a41aaa5ee3a7f14e0e32b1d29a64.tar.gz bcm5719-llvm-7822b4618853a41aaa5ee3a7f14e0e32b1d29a64.zip | |
Revert "Use llvm::lower_bound. NFC"
This reverts commit rL358161.
This patch have broken the test:
llvm/test/tools/llvm-exegesis/X86/uops-CMOV16rm-noreg.s
llvm-svn: 358199
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 7c80b3bb3e9..6bac12f765d 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 = llvm::lower_bound( - Locations, Offset, + auto It = std::lower_bound( + Locations.begin(), Locations.end(), 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 = llvm::lower_bound( - Locations, Offset, + auto It = std::lower_bound( + Locations.begin(), Locations.end(), Offset, [](const LocationList &L, uint64_t Offset) { return L.Offset < Offset; }); if (It != Locations.end() && It->Offset == Offset) return &(*It); |

