[lld] r311587 - Update comments: parallel_for_each -> parallelForEach
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 12:03:21 PDT 2017
Author: sbc
Date: Wed Aug 23 12:03:20 2017
New Revision: 311587
URL: http://llvm.org/viewvc/llvm-project?rev=311587&view=rev
Log:
Update comments: parallel_for_each -> parallelForEach
Also remove unused include of raw_ostream.h
Differential Revision: https://reviews.llvm.org/D37048
Modified:
lld/trunk/COFF/Writer.cpp
lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/Threads.h
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=311587&r1=311586&r2=311587&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Wed Aug 23 12:03:20 2017
@@ -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>
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=311587&r1=311586&r2=311587&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Wed Aug 23 12:03:20 2017
@@ -194,7 +194,7 @@ OutputSection *SectionBase::getOutputSec
}
// 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(Obj
// 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;
Modified: lld/trunk/ELF/Threads.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Threads.h?rev=311587&r1=311586&r2=311587&view=diff
==============================================================================
--- lld/trunk/ELF/Threads.h (original)
+++ lld/trunk/ELF/Threads.h Wed Aug 23 12:03:20 2017
@@ -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
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=311587&r1=311586&r2=311587&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Aug 23 12:03:20 2017
@@ -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;
More information about the llvm-commits
mailing list