mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftCompilerSources: bridge SILLinkage
Make SILLInkage available in SIL as `SIL.Linkage`. Also, rename the misleading Function and GlobalVariable ABI `isAvailableExternally` to `isDefinedExternally`
This commit is contained in:
@@ -35,7 +35,7 @@ let readOnlyGlobalVariablesPass = ModulePass(name: "read-only-global-variables")
|
||||
}
|
||||
|
||||
for g in moduleContext.globalVariables {
|
||||
if !g.isAvailableExternally,
|
||||
if !g.isDefinedExternally,
|
||||
!g.isPossiblyUsedExternally,
|
||||
!g.isLet,
|
||||
!writtenGlobals.contains(g) {
|
||||
|
||||
Reference in New Issue
Block a user