llvm-wrapper: adapt to function signature change of thinLTOResolvePrevailingInIndex
This changed in 54fb3ca96e261f7107cb1b5778c34cb0e0808be6 - I'm not entirely sure it's correct that we're leaving config empty, but the one case in LLVM that looked similar did that.
This commit is contained in:
parent
1d6754d6eb
commit
af95484778
1 changed files with 6 additions and 1 deletions
|
@ -1437,9 +1437,14 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
|
||||||
Ret->ResolvedODR[ModuleIdentifier][GUID] = NewLinkage;
|
Ret->ResolvedODR[ModuleIdentifier][GUID] = NewLinkage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if LLVM_VERSION_GE(12,0)
|
||||||
|
lto::Config conf;
|
||||||
|
thinLTOResolvePrevailingInIndex(conf, Ret->Index, isPrevailing, recordNewLinkage,
|
||||||
|
Ret->GUIDPreservedSymbols);
|
||||||
|
#else
|
||||||
thinLTOResolvePrevailingInIndex(Ret->Index, isPrevailing, recordNewLinkage,
|
thinLTOResolvePrevailingInIndex(Ret->Index, isPrevailing, recordNewLinkage,
|
||||||
Ret->GUIDPreservedSymbols);
|
Ret->GUIDPreservedSymbols);
|
||||||
|
#endif
|
||||||
// Here we calculate an `ExportedGUIDs` set for use in the `isExported`
|
// Here we calculate an `ExportedGUIDs` set for use in the `isExported`
|
||||||
// callback below. This callback below will dictate the linkage for all
|
// callback below. This callback below will dictate the linkage for all
|
||||||
// summaries in the index, and we basically just only want to ensure that dead
|
// summaries in the index, and we basically just only want to ensure that dead
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue