summaryrefslogtreecommitdiff
path: root/COFF/MapFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'COFF/MapFile.cpp')
-rw-r--r--COFF/MapFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/COFF/MapFile.cpp b/COFF/MapFile.cpp
index 4e596e602fee..b63d4672c7d5 100644
--- a/COFF/MapFile.cpp
+++ b/COFF/MapFile.cpp
@@ -25,7 +25,7 @@
#include "Symbols.h"
#include "Writer.h"
-#include "lld/Core/Parallel.h"
+#include "llvm/Support/Parallel.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -76,7 +76,7 @@ static SymbolMapTy getSectionSyms(ArrayRef<DefinedRegular *> Syms) {
static DenseMap<DefinedRegular *, std::string>
getSymbolStrings(ArrayRef<DefinedRegular *> Syms) {
std::vector<std::string> Str(Syms.size());
- parallel_for((size_t)0, Syms.size(), [&](size_t I) {
+ for_each_n(parallel::par, (size_t)0, Syms.size(), [&](size_t I) {
raw_string_ostream OS(Str[I]);
writeHeader(OS, Syms[I]->getRVA(), 0, 0);
OS << indent(2) << toString(*Syms[I]);