Skip to content

Commit d24b749

Browse files
committed
[se-0370] improve silgen names for renamed symbols
1 parent c2c432c commit d24b749

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ extension Unsafe${Mutable}BufferPointer {
737737
/// - Parameters:
738738
/// - repeatedValue: The value used when updating this pointer's memory.
739739
@inlinable // unsafe-performance
740-
@_alwaysEmitIntoClient
741740
@_silgen_name("$sSr6assign9repeatingyx_tF")
742741
public func update(repeating repeatedValue: Element) {
743742
guard let dstBase = _position else {
@@ -750,7 +749,7 @@ extension Unsafe${Mutable}BufferPointer {
750749
@inlinable
751750
@_alwaysEmitIntoClient
752751
@available(*, deprecated, renamed: "update(repeating:)")
753-
@_silgen_name("_deprecated_assign_repeating")
752+
@_silgen_name("_swift_se0370_UnsageMutableBufferPointer_assign_repeating")
754753
public func assign(repeating repeatedValue: Element) {
755754
update(repeating: repeatedValue)
756755
}

stdlib/public/core/UnsafePointer.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
779779
/// - count: The number of consecutive elements to update.
780780
/// `count` must not be negative.
781781
@inlinable
782-
@_alwaysEmitIntoClient
783782
@_silgen_name("$sSp6assign9repeating5countyx_SitF")
784783
public func update(repeating repeatedValue: Pointee, count: Int) {
785784
_debugPrecondition(count >= 0, "UnsafeMutablePointer.assign(repeating:count:) with negative count")
@@ -791,7 +790,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
791790
@inlinable
792791
@_alwaysEmitIntoClient
793792
@available(*, deprecated, renamed: "update(repeating:count:)")
794-
@_silgen_name("_deprecated_assign_repeating_count")
793+
@_silgen_name("_swift_se0370_UnsafeMutablePointer_assign_repeating_count")
795794
public func assign(repeating repeatedValue: Pointee, count: Int) {
796795
update(repeating: repeatedValue, count: count)
797796
}
@@ -813,7 +812,6 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
813812
/// - count: The number of instances to copy from the memory referenced by
814813
/// `source` to this pointer's memory. `count` must not be negative.
815814
@inlinable
816-
@_alwaysEmitIntoClient
817815
@_silgen_name("$sSp6assign4from5countySPyxG_SitF")
818816
public func update(from source: UnsafePointer<Pointee>, count: Int) {
819817
_debugPrecondition(
@@ -843,7 +841,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
843841
@inlinable
844842
@_alwaysEmitIntoClient
845843
@available(*, deprecated, renamed: "update(from:count:)")
846-
@_silgen_name("_deprecated_assign_from_count")
844+
@_silgen_name("_swift_se0370_UnsafeMutablePointer_assign_from_count")
847845
public func assign(from source: UnsafePointer<Pointee>, count: Int) {
848846
update(from: source, count: count)
849847
}
@@ -943,7 +941,6 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
943941
/// - count: The number of instances to move from `source` to this
944942
/// pointer's memory. `count` must not be negative.
945943
@inlinable
946-
@_alwaysEmitIntoClient
947944
@_silgen_name("$sSp10moveAssign4from5countySpyxG_SitF")
948945
public func moveUpdate(
949946
@_nonEphemeral from source: UnsafeMutablePointer, count: Int
@@ -964,7 +961,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
964961
@inlinable
965962
@_alwaysEmitIntoClient
966963
@available(*, deprecated, renamed: "moveUpdate(from:count:)")
967-
@_silgen_name("_deprecated_moveAssign_from_count")
964+
@_silgen_name("_swift_se0370_UnsafeMutablePointer_moveAssign_from_count")
968965
public func moveAssign(
969966
@_nonEphemeral from source: UnsafeMutablePointer, count: Int
970967
) {

0 commit comments

Comments
 (0)