File tree 1 file changed +6
-0
lines changed
compiler/rustc_llvm/llvm-wrapper
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1120,9 +1120,15 @@ struct LLVMRustThinLTOData {
1120
1120
1121
1121
// Not 100% sure what these are, but they impact what's internalized and
1122
1122
// 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
1123
1128
StringMap<FunctionImporter::ImportMapTy> ImportLists;
1124
1129
StringMap<FunctionImporter::ExportSetTy> ExportLists;
1125
1130
StringMap<GVSummaryMapTy> ModuleToDefinedGVSummaries;
1131
+ #endif
1126
1132
StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR;
1127
1133
1128
1134
LLVMRustThinLTOData () : Index(/* HaveGVs = */ false ) {}
You can’t perform that action at this time.
0 commit comments