File tree 1 file changed +10
-7
lines changed
compiler/rustc_llvm/llvm-wrapper
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1158,13 +1158,6 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
1158
1158
// Otherwise, we sometimes lose `static` values -- see #60184.
1159
1159
computeDeadSymbolsWithConstProp (Ret->Index , Ret->GUIDPreservedSymbols ,
1160
1160
deadIsPrevailing, /* ImportEnabled = */ false );
1161
- ComputeCrossModuleImport (
1162
- Ret->Index ,
1163
- Ret->ModuleToDefinedGVSummaries ,
1164
- Ret->ImportLists ,
1165
- Ret->ExportLists
1166
- );
1167
-
1168
1161
// Resolve LinkOnce/Weak symbols, this has to be computed early be cause it
1169
1162
// impacts the caching.
1170
1163
//
@@ -1181,6 +1174,16 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
1181
1174
return true ;
1182
1175
return Prevailing->second == S;
1183
1176
};
1177
+ ComputeCrossModuleImport (
1178
+ Ret->Index ,
1179
+ Ret->ModuleToDefinedGVSummaries ,
1180
+ #if LLVM_VERSION_GE(17, 0)
1181
+ isPrevailing,
1182
+ #endif
1183
+ Ret->ImportLists ,
1184
+ Ret->ExportLists
1185
+ );
1186
+
1184
1187
auto recordNewLinkage = [&](StringRef ModuleIdentifier,
1185
1188
GlobalValue::GUID GUID,
1186
1189
GlobalValue::LinkageTypes NewLinkage) {
You can’t perform that action at this time.
0 commit comments