File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
compiler/rustc_llvm/llvm-wrapper Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1120,9 +1120,15 @@ struct LLVMRustThinLTOData {
11201120
11211121 // Not 100% sure what these are, but they impact what's internalized and
11221122 // what's inlined across modules, I believe.
1123+ #if LLVM_VERSION_GE(17, 0)
1124+ DenseMap<StringRef, FunctionImporter::ImportMapTy> ImportLists;
1125+ DenseMap<StringRef, FunctionImporter::ExportSetTy> ExportLists;
1126+ DenseMap<StringRef, GVSummaryMapTy> ModuleToDefinedGVSummaries;
1127+ #else
11231128 StringMap<FunctionImporter::ImportMapTy> ImportLists;
11241129 StringMap<FunctionImporter::ExportSetTy> ExportLists;
11251130 StringMap<GVSummaryMapTy> ModuleToDefinedGVSummaries;
1131+ #endif
11261132 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR;
11271133
11281134 LLVMRustThinLTOData () : Index(/* HaveGVs = */ false ) {}
You can’t perform that action at this time.
0 commit comments