aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DWARFLinker
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2024-03-05 18:00:46 -0800
committerGitHub <noreply@github.com>2024-03-05 18:00:46 -0800
commit716042a63f26cd020eb72960f72fa97b9a197382 (patch)
treee6ab10210bd7a8d593a7aea71d1958467153b397 /llvm/lib/DWARFLinker
parent31c304ba7ba8bb5c236072df55640154ea49b588 (diff)
downloadllvm-716042a63f26cd020eb72960f72fa97b9a197382.zip
llvm-716042a63f26cd020eb72960f72fa97b9a197382.tar.gz
llvm-716042a63f26cd020eb72960f72fa97b9a197382.tar.bz2
Rename llvm::ThreadPool -> llvm::DefaultThreadPool (NFC) (#83702)
The base class llvm::ThreadPoolInterface will be renamed llvm::ThreadPool in a subsequent commit. This is a breaking change: clients who use to create a ThreadPool must now create a DefaultThreadPool instead.
Diffstat (limited to 'llvm/lib/DWARFLinker')
-rw-r--r--llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp2
-rw-r--r--llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp b/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
index 4f5a4e2..9b581a6 100644
--- a/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
+++ b/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
@@ -2935,7 +2935,7 @@ Error DWARFLinker::link() {
}
EmitLambda();
} else {
- ThreadPool Pool(hardware_concurrency(2));
+ DefaultThreadPool Pool(hardware_concurrency(2));
Pool.async(AnalyzeAll);
Pool.async(CloneAll);
Pool.wait();
diff --git a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
index a052969..49b0899 100644
--- a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
+++ b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
@@ -192,7 +192,7 @@ Error DWARFLinkerImpl::link() {
Context->InputDWARFFile.unload();
}
} else {
- ThreadPool Pool(llvm::parallel::strategy);
+ DefaultThreadPool Pool(llvm::parallel::strategy);
for (std::unique_ptr<LinkContext> &Context : ObjectContexts)
Pool.async([&]() {
// Link object file.