mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -171,3 +171,9 @@ extension GlobalVariable {
|
||||
bridged.setLet(value)
|
||||
}
|
||||
}
|
||||
|
||||
extension Function {
|
||||
func set(linkage: Linkage, _ context: ModulePassContext) {
|
||||
bridged.setLinkage(linkage.bridged)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user