diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:41 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:41 +0000 |
| commit | 022ebf5bbf58ca2dd943d3376cc95a6b206db799 (patch) | |
| tree | 4069ef3b75eed2d68683cb6224a627c24cd95b15 /ELF/ICF.cpp | |
| parent | fbe69f787ace06f44b6cb1bd3cd45ac703a16a05 (diff) | |
Notes
Diffstat (limited to 'ELF/ICF.cpp')
| -rw-r--r-- | ELF/ICF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ELF/ICF.cpp b/ELF/ICF.cpp index dcf01ea80011..3722d4e3ed2f 100644 --- a/ELF/ICF.cpp +++ b/ELF/ICF.cpp @@ -325,7 +325,7 @@ void ICF<ELFT>::forEachClass(std::function<void(size_t, size_t)> Fn) { // Split sections into 256 shards and call Fn in parallel. size_t NumShards = 256; size_t Step = Sections.size() / NumShards; - parallelFor(0, NumShards, [&](size_t I) { + parallelForEachN(0, NumShards, [&](size_t I) { forEachClassRange(I * Step, (I + 1) * Step, Fn); }); forEachClassRange(Step * NumShards, Sections.size(), Fn); |
