Skip to content

Commit 026c3c9

Browse files
authored
Merge pull request swiftlang#28918 from lorentey/foundation-no-inlinable-shim-calls
2 parents aa0bf50 + 0344f08 commit 026c3c9

18 files changed

+189
-186
lines changed

stdlib/public/Darwin/Foundation/Calendar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftFoundationOverlayShims
14+
@_implementationOnly import _SwiftFoundationOverlayShims
1515

1616
/**
1717
`Calendar` encapsulates information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. It provides information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time.

stdlib/public/Darwin/Foundation/CharacterSet.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
@_exported import Foundation // Clang module
1414
import CoreFoundation
15-
import _SwiftCoreFoundationOverlayShims
16-
import _SwiftFoundationOverlayShims
15+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
16+
@_implementationOnly import _SwiftFoundationOverlayShims
1717

1818
private func _utfRangeToCFRange(_ inRange : Range<Unicode.Scalar>) -> CFRange {
1919
return CFRange(

stdlib/public/Darwin/Foundation/Data.swift

Lines changed: 172 additions & 131 deletions
Large diffs are not rendered by default.

stdlib/public/Darwin/Foundation/Date.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@_exported import Foundation // Clang module
1414
import CoreFoundation
15-
import _SwiftCoreFoundationOverlayShims
15+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1616

1717
/**
1818
`Date` represents a single point in time.

stdlib/public/Darwin/Foundation/DateInterval.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftCoreFoundationOverlayShims
14+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1515

1616
/// DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.
1717
@available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)

stdlib/public/Darwin/Foundation/Decimal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftCoreFoundationOverlayShims
14+
@_implementationOnly import _SwiftCoreFoundationOverlayShims
1515

1616
extension Decimal {
1717
public typealias RoundingMode = NSDecimalNumber.RoundingMode

stdlib/public/Darwin/Foundation/FileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftFoundationOverlayShims
14+
@_implementationOnly import _SwiftFoundationOverlayShims
1515

1616
extension FileManager {
1717
/*

stdlib/public/Darwin/Foundation/IndexPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftFoundationOverlayShims
14+
@_implementationOnly import _SwiftFoundationOverlayShims
1515

1616
/**
1717
`IndexPath` represents the path to a specific node in a tree of nested array collections.

stdlib/public/Darwin/Foundation/IndexSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftFoundationOverlayShims
14+
@_implementationOnly import _SwiftFoundationOverlayShims
1515

1616
extension IndexSet.Index {
1717
public static func ==(lhs: IndexSet.Index, rhs: IndexSet.Index) -> Bool {

stdlib/public/Darwin/Foundation/Locale.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
@_exported import Foundation // Clang module
14-
import _SwiftFoundationOverlayShims
14+
@_implementationOnly import _SwiftFoundationOverlayShims
1515

1616
/**
1717
`Locale` encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.

0 commit comments

Comments
 (0)