Skip to content

Commit 45a44a7

Browse files
committed
Use @_alwaysEmitIntoClient for new entrypoints
1 parent 4d037ce commit 45a44a7

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

stdlib/public/core/ArrayBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ extension _ArrayBuffer {
586586
/// underlying contiguous storage. If no such storage exists, it is
587587
/// created on-demand.
588588
@inlinable
589+
@_alwaysEmitIntoClient
589590
internal func withUnsafeBufferPointer<R, E>(
590591
_ body: (UnsafeBufferPointer<Element>) throws(E) -> R
591592
) throws(E) -> R {

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ internal struct _ContiguousArrayBuffer<Element>: _ArrayBufferProtocol {
459459
/// Call `body(p)`, where `p` is an `UnsafeBufferPointer` over the
460460
/// underlying contiguous storage.
461461
@inlinable
462+
@_alwaysEmitIntoClient
462463
internal func withUnsafeBufferPointer<R, E>(
463464
_ body: (UnsafeBufferPointer<Element>) throws(E) -> R
464465
) throws(E) -> R {

stdlib/public/core/SliceBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ internal struct _SliceBuffer<Element>
445445
/// Call `body(p)`, where `p` is an `UnsafeBufferPointer` over the
446446
/// underlying contiguous storage.
447447
@inlinable
448+
@_alwaysEmitIntoClient
448449
internal func withUnsafeBufferPointer<R, E>(
449450
_ body: (UnsafeBufferPointer<Element>) throws(E) -> R
450451
) throws(E) -> R {

test/abi/macOS/arm64/stdlib.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,12 +583,8 @@ Added: _$sSS20_immortalCocoaString5count8encodingSSyXl_Sixmtcs16_UnicodeEncoding
583583
Added: _$ss33_stdlib_isVariantOSVersionAtLeastyBi1_Bw_BwBwtF
584584

585585
// Typed throws for withUnsafeBufferPointer operations.
586-
Added: _$ss12_ArrayBufferV010withUnsafeB7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
587-
Added: _$ss12_SliceBufferV010withUnsafeB7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
588586
Added: _$ss20_ArrayBufferProtocolP010withUnsafeB7Pointeryqd__qd__SRy7ElementQzGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lFTj
589587
Added: _$ss20_ArrayBufferProtocolP010withUnsafeB7Pointeryqd__qd__SRy7ElementQzGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lFTq
590-
Added: _$ss22_ContiguousArrayBufferV010withUnsafeC7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
591-
592588

593589
// Typed throws for withUnsafeMutableBufferPointer operations.
594590
Added: _$ss20_ArrayBufferProtocolP017withUnsafeMutableB7Pointeryqd__qd__Sry7ElementQzGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lFTj

test/abi/macOS/x86_64/stdlib.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,7 @@ Added: _$sSS20_immortalCocoaString5count8encodingSSyXl_Sixmtcs16_UnicodeEncoding
583583
Added: _$ss33_stdlib_isVariantOSVersionAtLeastyBi1_Bw_BwBwtF
584584

585585
// Typed throws for withUnsafeBufferPointer operations.
586-
Added: _$ss12_ArrayBufferV010withUnsafeB7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
587-
Added: _$ss12_SliceBufferV010withUnsafeB7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
588586
Added: _$ss20_ArrayBufferProtocolP010withUnsafeB7Pointeryqd__qd__SRy7ElementQzGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lFTj
589-
Added: _$ss22_ContiguousArrayBufferV010withUnsafeC7Pointeryqd__qd__SRyxGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF
590587
Added: _$ss20_ArrayBufferProtocolP010withUnsafeB7Pointeryqd__qd__SRy7ElementQzGqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lFTq
591588

592589
// Typed throws for withUnsafeMutableBufferPointer operations.

0 commit comments

Comments
 (0)