diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2024-03-05 18:00:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 18:00:46 -0800 |
commit | 716042a63f26cd020eb72960f72fa97b9a197382 (patch) | |
tree | e6ab10210bd7a8d593a7aea71d1958467153b397 /llvm/lib/LTO/LTOBackend.cpp | |
parent | 31c304ba7ba8bb5c236072df55640154ea49b588 (diff) | |
download | llvm-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/LTO/LTOBackend.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 6cfe677..71e8849 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -431,7 +431,7 @@ static void splitCodeGen(const Config &C, TargetMachine *TM, AddStreamFn AddStream, unsigned ParallelCodeGenParallelismLevel, Module &Mod, const ModuleSummaryIndex &CombinedIndex) { - ThreadPool CodegenThreadPool( + DefaultThreadPool CodegenThreadPool( heavyweight_hardware_concurrency(ParallelCodeGenParallelismLevel)); unsigned ThreadCount = 0; const Target *T = &TM->getTarget(); |