Skip to content

Commit 96db387

Browse files
committed
Fix symbol visibility in fake overlays
Stronger assertions are coming which will trigger if these are defined as internal.
1 parent af8e7d2 commit 96db387

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/Inputs/clang-importer-sdk/swift-modules-without-ns/ObjectiveC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public struct NSZone {
6161
public var pointer : OpaquePointer
6262
}
6363

64-
internal func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool {
64+
public func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool {
6565
return ObjCBool(x)
6666
}
6767

68-
internal func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool {
68+
public func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool {
6969
return x.boolValue
7070
}
7171

test/Inputs/clang-importer-sdk/swift-modules/ObjectiveC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public struct NSZone {
7575
public var pointer : OpaquePointer
7676
}
7777

78-
internal func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool {
78+
public func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool {
7979
return ObjCBool(x)
8080
}
8181

82-
internal func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool {
82+
public func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool {
8383
return x.boolValue
8484
}
8585

test/SILGen/Inputs/ObjectiveC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public struct ObjCBool {
1212
}
1313

1414
@_silgen_name("swift_BoolToObjCBool")
15-
func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool
15+
public func _convertBoolToObjCBool(_ x: Bool) -> ObjCBool
1616

1717
@_silgen_name("swift_ObjCBoolToBool")
18-
func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool
18+
public func _convertObjCBoolToBool(_ x: ObjCBool) -> Bool
1919

2020

2121
public struct Selector : ExpressibleByStringLiteral {

0 commit comments

Comments
 (0)