File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ static cl::opt<bool> KeepARanges(
329
329
" keep or generate .debug_aranges section if .gdb_index is written" ),
330
330
cl::Hidden, cl::cat(BoltCategory));
331
331
332
- static cl::opt<int >
332
+ static cl::opt<unsigned >
333
333
DebugThreadCount (" debug-thread-count" ,
334
334
cl::desc (" specifies thread count for the multithreading "
335
335
" for updating DWO debug info" ),
@@ -725,8 +725,11 @@ void DWARFRewriter::updateDebugInfo() {
725
725
for (std::vector<DWARFUnit *> &Vec : PartVec) {
726
726
DIEBlder.buildCompileUnits (Vec);
727
727
llvm::SmallVector<std::unique_ptr<DIEBuilder>, 72 > DWODIEBuildersByCU;
728
+ const int ThreadCount = (opts::DebugThreadCount < opts::ThreadCount)
729
+ ? opts::DebugThreadCount
730
+ : opts::ThreadCount;
728
731
ThreadPoolInterface &ThreadPool =
729
- ParallelUtilities::getThreadPool (opts::DebugThreadCount );
732
+ ParallelUtilities::getThreadPool (ThreadCount );
730
733
for (DWARFUnit *CU : DIEBlder.getProcessedCUs ()) {
731
734
createRangeLocListAddressWriters (*CU);
732
735
std::optional<DWARFUnit *> SplitCU;
You can’t perform that action at this time.
0 commit comments