summaryrefslogtreecommitdiff
path: root/lld/ELF/ICF.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2022-06-19 12:30:06 -0400
committerNico Weber <thakis@chromium.org>2022-06-19 17:49:00 -0400
commit7effcbda49ba32991b8955821b8fdbd4f8f303e2 (patch)
treed55acb89f56ca9445f99ba60efa1dcc8c0270fbe /lld/ELF/ICF.cpp
parenta5cb6edb475bd41a3e3ced3fa9323096535c2da9 (diff)
downloadllvm-7effcbda49ba32991b8955821b8fdbd4f8f303e2.tar.gz
Rename parallelForEachN to just parallelFor
Patch created by running: rg -l parallelForEachN | xargs sed -i '' -c 's/parallelForEachN/parallelFor/' No behavior change. Differential Revision: https://reviews.llvm.org/D128140
Diffstat (limited to 'lld/ELF/ICF.cpp')
-rw-r--r--lld/ELF/ICF.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/ICF.cpp b/lld/ELF/ICF.cpp
index f4e4389b41fc..77d32db6718a 100644
--- a/lld/ELF/ICF.cpp
+++ b/lld/ELF/ICF.cpp
@@ -422,11 +422,11 @@ void ICF<ELFT>::forEachClass(llvm::function_ref<void(size_t, size_t)> fn) {
boundaries[0] = 0;
boundaries[numShards] = sections.size();
- parallelForEachN(1, numShards, [&](size_t i) {
+ parallelFor(1, numShards, [&](size_t i) {
boundaries[i] = findBoundary((i - 1) * step, sections.size());
});
- parallelForEachN(1, numShards + 1, [&](size_t i) {
+ parallelFor(1, numShards + 1, [&](size_t i) {
if (boundaries[i - 1] < boundaries[i])
forEachClassRange(boundaries[i - 1], boundaries[i], fn);
});