swift
0a734c2a - [PackageCMO] Global var and accessor linkage should be kept private/hidden in SILGen.

Commit
1 year ago
[PackageCMO] Global var and accessor linkage should be kept private/hidden in SILGen. This PR contains changes that ensure the following: * Global accessor linkage is kept hidden if its decl is resilient. - LinkageLimit::Never is returned for Global Accessor if its decl is resilient. - Since it's kept hidden, the use site should not expect a call to a global accessor if the static var decl being accessed is resilient. The bypassing resilience logic in AbstractStorageDecl::isResilient(accessingModule, decl) has been removed; to be addressed in Package CMO optimization pass. * sil_global linkage is kept private if its decl is resilient. Resolves rdar://129829925
Author
Committer
Parents
Loading