diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-03-22 23:03:35 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-03-22 23:03:35 +0000 |
| commit | 4995afd94339629fa2124a93979df1861d37ec2a (patch) | |
| tree | 309fdb02b3808f7ec19c118373bb1a77fecf816d /lld/ELF/SyntheticSections.cpp | |
| parent | ca0e7f64725a0480d29fe6fc268dc84658debc8c (diff) | |
| download | bcm5719-llvm-4995afd94339629fa2124a93979df1861d37ec2a.tar.gz bcm5719-llvm-4995afd94339629fa2124a93979df1861d37ec2a.zip | |
Rename forEach -> parallelForEach and forLoop -> parallelFor.
"Parallel" is the most important aspect of the functions,
so we shouldn't omit that.
llvm-svn: 298557
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<uint8_t> 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); |

