summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-10 01:16:22 +0000
committerZachary Turner <zturner@google.com>2017-05-10 01:16:22 +0000
commit092c7677450164bb781f69b711937495a79ccfca (patch)
treebf0ca54dadbe3c53ccd3d64873e1751d251427db /lld/lib/ReaderWriter
parenta09ff59cc2f9c94432fb29dfbfcda095ef3bc5e8 (diff)
downloadbcm5719-llvm-092c7677450164bb781f69b711937495a79ccfca.tar.gz
bcm5719-llvm-092c7677450164bb781f69b711937495a79ccfca.zip
[Core] Make parallel algorithms match C++ Parallelism TS.
Differential Revision: https://reviews.llvm.org/D33016 llvm-svn: 302613
Diffstat (limited to 'lld/lib/ReaderWriter')
-rw-r--r--lld/lib/ReaderWriter/MachO/LayoutPass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
index 24dbf79d3e3..2b5a46cc98f 100644
--- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
+++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
@@ -461,10 +461,10 @@ llvm::Error LayoutPass::perform(SimpleFile &mergedFile) {
});
std::vector<LayoutPass::SortKey> vec = decorate(atomRange);
- parallel_sort(vec.begin(), vec.end(),
- [&](const LayoutPass::SortKey &l, const LayoutPass::SortKey &r) -> bool {
- return compareAtoms(l, r, _customSorter);
- });
+ sort(parallel::par, vec.begin(), vec.end(),
+ [&](const LayoutPass::SortKey &l, const LayoutPass::SortKey &r) -> bool {
+ return compareAtoms(l, r, _customSorter);
+ });
DEBUG(checkTransitivity(vec, _customSorter));
undecorate(atomRange, vec);
OpenPOWER on IntegriCloud