summaryrefslogtreecommitdiffstats
path: root/lld/ELF
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF')
-rw-r--r--lld/ELF/AArch64ErrataFix.cpp6
-rw-r--r--lld/ELF/EhFrame.cpp2
-rw-r--r--lld/ELF/Writer.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/AArch64ErrataFix.cpp b/lld/ELF/AArch64ErrataFix.cpp
index a0653b96a8f..78e8d2912c5 100644
--- a/lld/ELF/AArch64ErrataFix.cpp
+++ b/lld/ELF/AArch64ErrataFix.cpp
@@ -551,9 +551,9 @@ static void implementPatch(uint64_t AdrpAddr, uint64_t PatcheeOffset,
// and replace the relocation with a R_AARCH_JUMP26 branch relocation.
// Case 4: No relocation. We must create a new R_AARCH64_JUMP26 branch
// relocation at the offset.
- auto RelIt = std::find_if(
- IS->Relocations.begin(), IS->Relocations.end(),
- [=](const Relocation &R) { return R.Offset == PatcheeOffset; });
+ auto RelIt = llvm::find_if(IS->Relocations, [=](const Relocation &R) {
+ return R.Offset == PatcheeOffset;
+ });
if (RelIt != IS->Relocations.end() &&
(RelIt->Type == R_AARCH64_JUMP26 || RelIt->Expr == R_RELAX_TLS_IE_TO_LE))
return;
diff --git a/lld/ELF/EhFrame.cpp b/lld/ELF/EhFrame.cpp
index 1d3745ed5bb..236b895f61c 100644
--- a/lld/ELF/EhFrame.cpp
+++ b/lld/ELF/EhFrame.cpp
@@ -96,7 +96,7 @@ void EhReader::skipBytes(size_t Count) {
// Read a null-terminated string.
StringRef EhReader::readString() {
- const uint8_t *End = std::find(D.begin(), D.end(), '\0');
+ const uint8_t *End = llvm::find(D, '\0');
if (End == D.end())
failOn(D.data(), "corrupted CIE (failed to read string)");
StringRef S = toStringRef(D.slice(0, End - D.begin()));
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 2d9019df0fe..16b9a22e4a6 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -2029,7 +2029,7 @@ template <class ELFT> void Writer<ELFT>::fixSectionAlignments() {
// Find the first section after PT_GNU_RELRO. If it is in a PT_LOAD we
// have to align it to a page.
auto End = OutputSections.end();
- auto I = std::find(OutputSections.begin(), End, P->LastSec);
+ auto I = llvm::find(OutputSections, P->LastSec);
if (I == End || (I + 1) == End)
continue;
OpenPOWER on IntegriCloud