diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-02-26 15:16:03 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-02-26 15:16:03 +0000 |
commit | 0c97f4eba47521472920c1ae9900a0b2144f97c2 (patch) | |
tree | 9488d9fd35084416fbd6c3de727bf8380a5dbbde | |
parent | 83665e6d36bc383e89d3c65a3d701688a84406e3 (diff) | |
download | bcm5719-llvm-0c97f4eba47521472920c1ae9900a0b2144f97c2.tar.gz bcm5719-llvm-0c97f4eba47521472920c1ae9900a0b2144f97c2.zip |
[ELF] - Fix variable name and mistype in comment. NFC.
llvm-svn: 326090
-rw-r--r-- | lld/ELF/Writer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 111a19d9bb5..19ab2cb0393 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1965,11 +1965,11 @@ static void checkForSectionOverlap(ArrayRef<OutputSection *> AllSections, [=](const OutputSection *A, const OutputSection *B) { return GetStart(A) < GetStart(B); }); - for (size_t i = 0; i < Sections.size(); ++i) { - OutputSection *Sec = Sections[i]; + for (size_t I = 0; I < Sections.size(); ++I) { + OutputSection *Sec = Sections[I]; uint64_t Start = GetStart(Sec); - for (auto *Other : ArrayRef<OutputSection *>(Sections).slice(i + 1)) { - // Since the sections are storted by start address we only need to check + for (auto *Other : ArrayRef<OutputSection *>(Sections).slice(I + 1)) { + // Since the sections are sorted by start address we only need to check // whether the other sections starts before the end of Sec. If this is // not the case we can break out of this loop since all following sections // will also start after the end of Sec. |