From 4995afd94339629fa2124a93979df1861d37ec2a Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 22 Mar 2017 23:03:35 +0000 Subject: Rename forEach -> parallelForEach and forLoop -> parallelFor. "Parallel" is the most important aspect of the functions, so we shouldn't omit that. llvm-svn: 298557 --- lld/ELF/SyntheticSections.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lld/ELF/SyntheticSections.cpp') diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index c98f152e29f..22c7f268995 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -356,8 +356,9 @@ void BuildIdSection::computeHash( std::vector Hashes(Chunks.size() * HashSize); // Compute hash values. - forLoop(0, Chunks.size(), - [&](size_t I) { HashFn(Hashes.data() + I * HashSize, Chunks[I]); }); + parallelFor(0, Chunks.size(), [&](size_t I) { + HashFn(Hashes.data() + I * HashSize, Chunks[I]); + }); // Write to the final output buffer. HashFn(HashBuf, Hashes); -- cgit v1.2.3