1
Fork 0

cleanup: add some comments per review feedback

This commit is contained in:
Augie Fackler 2021-03-22 14:37:49 -04:00
parent babe894bab
commit 9431e8577d
2 changed files with 6 additions and 0 deletions

View file

@ -1438,6 +1438,9 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
};
#if LLVM_VERSION_GE(13,0)
// Uses FromPrevailing visibility scheme which works for many binary
// formats. We probably could and should use ELF visibility scheme for many of
// our targets, however.
lto::Config conf;
thinLTOResolvePrevailingInIndex(conf, Ret->Index, isPrevailing, recordNewLinkage,
Ret->GUIDPreservedSymbols);