Skip to content

Commit 8b27ef4

Browse files
committed
Add comment clarifying what the BackendThreadPool is used for.
1 parent 7b135aa commit 8b27ef4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/LTO/LTO.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,6 +2279,9 @@ class OutOfProcessThinBackend : public CGThinBackend {
22792279
};
22802280

22812281
assert(ModuleToDefinedGVSummaries.count(ModulePath));
2282+
2283+
// The BackendThreadPool is only used here to write the sharded index files
2284+
// (similar to WriteIndexesThinBackend).
22822285
BackendThreadPool.async(
22832286
[=](Job &J, const FunctionImporter::ImportMapTy &ImportList) {
22842287
if (auto E = emitFiles(ImportList, J.ModuleID, J.ModuleID.str(),

0 commit comments

Comments
 (0)