diff options
-rw-r--r-- | lld/COFF/Writer.cpp | 1 | ||||
-rw-r--r-- | lld/ELF/InputSection.cpp | 4 | ||||
-rw-r--r-- | lld/ELF/Threads.h | 2 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 1 |
4 files changed, 3 insertions, 5 deletions
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp index eec4d37ec43..c6f9625a146 100644 --- a/lld/COFF/Writer.cpp +++ b/lld/COFF/Writer.cpp @@ -26,7 +26,6 @@ #include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/Parallel.h" #include "llvm/Support/RandomNumberGenerator.h" -#include "llvm/Support/raw_ostream.h" #include <algorithm> #include <cstdio> #include <map> diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 2adfc0d776f..ef941bc40d4 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -194,7 +194,7 @@ OutputSection *SectionBase::getOutputSection() { } // Uncompress section contents. Note that this function is called -// from parallel_for_each, so it must be thread-safe. +// from parallelForEach, so it must be thread-safe. void InputSectionBase::uncompress() { Decompressor Dec = check(Decompressor::create(Name, toStringRef(Data), Config->IsLE, Config->Is64)); @@ -920,7 +920,7 @@ MergeInputSection::MergeInputSection(ObjFile<ELFT> *F, // that need to be linked. This is responsible to split section contents // into small chunks for further processing. // -// Note that this function is called from parallel_for_each. This must be +// Note that this function is called from parallelForEach. This must be // thread-safe (i.e. no memory allocation from the pools). void MergeInputSection::splitIntoPieces() { ArrayRef<uint8_t> Data = this->Data; diff --git a/lld/ELF/Threads.h b/lld/ELF/Threads.h index 924aca0e04a..2df0204be58 100644 --- a/lld/ELF/Threads.h +++ b/lld/ELF/Threads.h @@ -30,7 +30,7 @@ // - We have tens of millions of small strings when constructing a // mergeable string section. // -// For the cases such as the former, we can just use parallel_for_each +// For the cases such as the former, we can just use parallelForEach // instead of std::for_each (or a plain for loop). Because tasks are // completely independent from each other, we can run them in parallel // without any coordination between them. That's very easy to understand diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index e12de224c15..4db4f0a1d70 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -23,7 +23,6 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/FileOutputBuffer.h" -#include "llvm/Support/raw_ostream.h" #include <climits> using namespace llvm; |