Skip to content

Commit 63c6c49

Browse files
committed
[stdlib] improve silgen names and better document intention
1 parent e1246ff commit 63c6c49

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ extension Unsafe${Mutable}BufferPointer {
730730
@_alwaysEmitIntoClient
731731
// This custom silgen name is chosen to not interfere with the old ABI
732732
% if Mutable:
733-
@_silgen_name("$_swift_se0333_UnsafeMutableBufferPointer_withMemoryRebound")
733+
@_silgen_name("_swift_se0333_UnsafeMutableBufferPointer_withMemoryRebound")
734734
% else:
735-
@_silgen_name("$_swift_se0333_UnsafeBufferPointer_withMemoryRebound")
735+
@_silgen_name("_swift_se0333_UnsafeBufferPointer_withMemoryRebound")
736736
% end
737737
public func withMemoryRebound<T, Result>(
738738
to type: T.Type,

stdlib/public/core/UnsafePointer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
10131013
@inlinable
10141014
@_alwaysEmitIntoClient
10151015
// This custom silgen name is chosen to not interfere with the old ABI
1016-
@_silgen_name("$_swift_se0333_UnsafeMutablePointer_withMemoryRebound")
1016+
@_silgen_name("_swift_se0333_UnsafeMutablePointer_withMemoryRebound")
10171017
public func withMemoryRebound<T, Result>(
10181018
to type: T.Type,
10191019
capacity count: Int,

stdlib/public/core/UnsafeRawBufferPointer.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ extension Unsafe${Mutable}RawBufferPointer {
463463
/// with `type`.
464464
@inlinable
465465
@_alwaysEmitIntoClient
466+
// This custom silgen name is chosen to not interfere with the old ABI
466467
@_silgen_name("_swift_se0349_UnsafeMutableRawBufferPointer_storeBytes")
467468
public func storeBytes<T>(
468469
of value: T, toByteOffset offset: Int = 0, as type: T.Type

stdlib/public/core/UnsafeRawPointer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ public struct UnsafeMutableRawPointer: _Pointer {
12261226
/// - type: The type of `value`.
12271227
@inlinable
12281228
@_alwaysEmitIntoClient
1229+
// This custom silgen name is chosen to not interfere with the old ABI
12291230
@_silgen_name("_swift_se0349_UnsafeMutableRawPointer_storeBytes")
12301231
public func storeBytes<T>(
12311232
of value: T, toByteOffset offset: Int = 0, as type: T.Type

0 commit comments

Comments
 (0)