================
@@ -1963,22 +1972,35 @@ class WriteIndexesThinBackend : public ThinBackendProc {
}
BackendThreadPool.async(
- [this](const StringRef ModulePath,
+ [this](unsigned Task, const StringRef ModulePath,
const FunctionImporter::ImportMapTy &ImportList,
+ const FunctionImporter::ExportSetTy &ExportList,
+ const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>
+ &ResolvedODR,
const std::string &OldPrefix, const std::string &NewPrefix) {
std::string NewModulePath =
getThinLTOOutputFile(ModulePath, OldPrefix, NewPrefix);
- auto E = emitFiles(ImportList, ModulePath, NewModulePath);
+ auto E = emitFiles(ImportList, Task, ModulePath, NewModulePath);
if (E) {
std::unique_lock<std::mutex> L(ErrMu);
if (Err)
Err = joinErrors(std::move(*Err), std::move(E));
else
Err = std::move(E);
- return;
+ }
+ assert(ModuleToDefinedGVSummaries.count(ModulePath));
+ const GVSummaryMapTy &DefinedGlobals =
+ ModuleToDefinedGVSummaries.find(ModulePath)->second;
+
+ if (Conf.OnCacheKeyStoreCb) {
----------------
teresajohnson wrote:
Can you add a comment about why the cache key is being computed here? And
similar to the other callbacks as noted in the header I think this one would be
clearer if renamed as to what it is actually doing.
https://github.com/llvm/llvm-project/pull/192629
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits