Skip to content

Commit c8bfc87

Browse files
committed
Switch overlays from using @exported to -import-underlying-module.
Some day we'll close the hole for @exported in the previous commit. Swift SVN r29441
1 parent 955e130 commit c8bfc87

File tree

35 files changed

+3
-37
lines changed

35 files changed

+3
-37
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ function(_compile_swift_files dependency_target_out_var_name)
298298
endif()
299299

300300
if(SWIFTFILE_IS_SDK_OVERLAY)
301-
list(APPEND swift_flags "-autolink-force-load")
301+
list(APPEND swift_flags
302+
"-autolink-force-load"
303+
"-import-underlying-module")
302304
endif()
303305

304306
list(APPEND swift_flags ${SWIFT_EXPERIMENTAL_EXTRA_FLAGS})

stdlib/public/SDK/AVFoundation/AVFoundation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import AVFoundation // Clang module
21
import Foundation
32

43
extension AVError : _BridgedNSError {

stdlib/public/SDK/AppKit/AppKit.swift

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

1313
import Foundation
14-
@exported import AppKit
1514

1615
class REPLApplication : NSApplication {
1716
}

stdlib/public/SDK/AssetsLibrary/AssetsLibrary.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import AssetsLibrary // Clang module
14-
1513
//===----------------------------------------------------------------------===//
1614
// ALAssetsLibrary.h
1715
//===----------------------------------------------------------------------===//

stdlib/public/SDK/CloudKit/CloudKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import CloudKit
21
import Foundation
32

43
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/CoreAudio/CoreAudio.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import CoreAudio // Clang module
14-
1513
extension UnsafeBufferPointer {
1614
/// Initialize an `UnsafeBufferPointer<T>` from an `AudioBuffer`.
1715
public init(_ audioBuffer: AudioBuffer) {

stdlib/public/SDK/CoreBluetooth/CoreBluetooth.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import CoreBluetooth
21
import Foundation
32

43
extension CBError : _BridgedNSError {

stdlib/public/SDK/CoreData/CoreData.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import CoreData
21
import Foundation
32

43
public extension NSCocoaError {

stdlib/public/SDK/CoreGraphics/CGFloat.swift.gyb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ word_bits = int(CMAKE_SIZEOF_VOID_P) * 8
1919

2020
}%
2121

22-
@exported import CoreGraphics
2322
import Darwin
2423

2524
public struct CGFloat {

stdlib/public/SDK/CoreGraphics/CoreGraphics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import CoreGraphics
1413
import Darwin
1514

1615
//===----------------------------------------------------------------------===//

stdlib/public/SDK/CoreImage/CoreImage.swift

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

1313
import Foundation
14-
@exported import CoreImage // Clang module
1514

1615
#if os(OSX)
1716
import QuartzCore

stdlib/public/SDK/CoreLocation/CoreLocation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import CoreLocation
21
import Foundation
32

43
extension CLError : _BridgedNSError {

stdlib/public/SDK/CoreMedia/CMTime.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import CoreMedia // Clang module
1413

1514
// CMTIME_IS_VALID
1615
// CMTIME_IS_INVALID

stdlib/public/SDK/CoreMedia/CMTimeRange.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import CoreMedia // Clang module
1413

1514
// CMTIMERANGE_IS_VALID
1615
// CMTIMERANGE_IS_INVALID

stdlib/public/SDK/CoreMedia/CoreMedia.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import CoreMedia // Clang module
1413

1514
// Nothing here yet.
1615

stdlib/public/SDK/Darwin/Darwin.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import Darwin // Clang module
1413

1514

1615
//===----------------------------------------------------------------------===//

stdlib/public/SDK/Dispatch/Dispatch.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import Dispatch
1413

1514
//===----------------------------------------------------------------------===//
1615
// Macros

stdlib/public/SDK/EventKit/EventKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import EventKit
21
import Foundation
32

43
extension EKErrorCode : _BridgedNSError {

stdlib/public/SDK/Foundation/Foundation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import Foundation // Clang module
1413
import CoreFoundation
1514
import CoreGraphics
1615

stdlib/public/SDK/GLKit/GLKit.swift.gyb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// GLKit overlays for Swift
1313
//===----------------------------------------------------------------------===//
1414

15-
@exported import GLKit // Clang module
1615

1716
// The GLKit headers provide a fairly complete set of types and operations
1817
// that Swift's importer is now able to present in Swift. However, Swift

stdlib/public/SDK/GameKit/GameKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import GameKit
21
import Foundation
32

43
extension GKErrorCode : _BridgedNSError {

stdlib/public/SDK/GameplayKit/GameplayKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import GameplayKit
1413

1514
@asmname("GK_Swift_GKEntity_componentForClass")
1615
internal func GK_Swift_GKEntity_componentForClass(

stdlib/public/SDK/HomeKit/HomeKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import HomeKit
21
import Foundation
32

43
@available(iOS 8.0, *)

stdlib/public/SDK/LocalAuthentication/LocalAuthentication.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import LocalAuthentication
21
import Foundation
32

43
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/MultipeerConnectivity/MultipeerConnectivity.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import MultipeerConnectivity
21
import Foundation
32

43
@available(OSX, introduced=10.10) @available(iOS, introduced=7.0)

stdlib/public/SDK/OpenCL/OpenCL.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import OpenCL // Clang module
1413

1514
@available(OSX, introduced=10.7)
1615
public func clSetKernelArgsListAPPLE(

stdlib/public/SDK/PassKit/PassKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import PassKit
21
import Foundation
32

43
@available(iOS, introduced=6.0)

stdlib/public/SDK/SceneKit/SceneKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import SceneKit // Clang module
1413

1514
@available(iOS, introduced=8.0)
1615
@available(OSX, introduced=10.8)

stdlib/public/SDK/Security/Security.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import Security // Clang module
1413

1514
//===----------------------------------------------------------------------===//
1615
// SecBase.h

stdlib/public/SDK/SpriteKit/SpriteKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import SpriteKit
21

32
// SpriteKit defines SKColor using a macro.
43

stdlib/public/SDK/UIKit/UIKit.swift

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

1313
import Foundation
14-
@exported import UIKit
1514

1615
// These are un-imported macros in UIKit.
1716

stdlib/public/SDK/WatchConnectivity/WatchConnectivity.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import WatchConnectivity
21
import Foundation
32

43
@available(iOS, introduced=9.0)

stdlib/public/SDK/WatchKit/WatchKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import WatchKit
1413
import Foundation
1514

1615
@available(iOS 8.2, *)

stdlib/public/SDK/WebKit/WebKit.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@exported import WebKit
21
import Foundation
32

43
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/XCTest/XCTest.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@exported import XCTest // Clang module
1413

1514
import CoreGraphics
1615

0 commit comments

Comments
 (0)