[llvm] [ThinLTO][Bitcode] Generate import type in bitcode (PR #87600)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 17:42:26 PDT 2024


================
@@ -1399,18 +1399,21 @@ class lto::ThinBackendProc {
                   llvm::StringRef ModulePath,
                   const std::string &NewModulePath) {
     std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
+    GVSummaryPtrSet DeclarationSummaries;
 
     std::error_code EC;
     gatherImportedSummariesForModule(ModulePath, ModuleToDefinedGVSummaries,
-                                     ImportList, ModuleToSummariesForIndex);
+                                     ImportList, ModuleToSummariesForIndex,
+                                     DeclarationSummaries);
 
     raw_fd_ostream OS(NewModulePath + ".thinlto.bc", EC,
                       sys::fs::OpenFlags::OF_None);
     if (EC)
       return errorCodeToError(EC);
 
     // TODO: Serialize declaration bits to bitcode.
----------------
minglotus-6 wrote:

done.

https://github.com/llvm/llvm-project/pull/87600


More information about the llvm-commits mailing list