summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Threads.h')
-rw-r--r--lld/ELF/Threads.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Threads.h b/lld/ELF/Threads.h
index c03e15253e1..3df9636068a 100644
--- a/lld/ELF/Threads.h
+++ b/lld/ELF/Threads.h
@@ -69,14 +69,15 @@ namespace lld {
namespace elf {
template <class IterTy, class FuncTy>
-void forEach(IterTy Begin, IterTy End, FuncTy Fn) {
+void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) {
if (Config->Threads)
parallel_for_each(Begin, End, Fn);
else
std::for_each(Begin, End, Fn);
}
-inline void forLoop(size_t Begin, size_t End, std::function<void(size_t)> Fn) {
+inline void parallelFor(size_t Begin, size_t End,
+ std::function<void(size_t)> Fn) {
if (Config->Threads) {
parallel_for(Begin, End, Fn);
} else {
OpenPOWER on IntegriCloud