Skip to content

Commit ca9d581

Browse files
committed
Adjust ATOMICS_NATIVE_BUILTINS imports to adapt to the BuiltinModule mechanism
1 parent ae2e46a commit ca9d581

21 files changed

+21
-21
lines changed

Sources/Atomics/AtomicBool.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
${autogenerated_warning()}
1818

1919
#if ATOMICS_NATIVE_BUILTINS
20-
import Swift
20+
import Builtin
2121
#else
2222
import _AtomicsShims
2323
#endif

Sources/Atomics/AtomicInteger.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
/// A type that supports atomic integer operations through a separate

Sources/Atomics/AtomicLazyReference.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
${autogenerated_warning()}
1616

1717
#if ATOMICS_NATIVE_BUILTINS
18-
import Swift
18+
import Builtin
1919
#endif
2020

2121
/// An unsafe reference type holding a lazily initializable atomic

Sources/Atomics/AtomicMemoryOrderings.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
/// Specifies the memory ordering semantics of an atomic load operation.

Sources/Atomics/AtomicOptional.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
/// An atomic value that also supports atomic operations when wrapped

Sources/Atomics/AtomicOptionalRawRepresentable.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
extension RawRepresentable

Sources/Atomics/AtomicRawRepresentable.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
extension RawRepresentable

Sources/Atomics/AtomicStrongReference.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#else
1616
import _AtomicsShims
1717
#endif

Sources/Atomics/AtomicValue.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#endif
1616

1717
/// A type that supports atomic operations through a separate atomic storage

Sources/Atomics/DoubleWord.swift

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

1313
#if ATOMICS_NATIVE_BUILTINS
14-
import Swift
14+
import Builtin
1515
#else
1616
import _AtomicsShims
1717
public typealias DoubleWord = _AtomicsShims.DoubleWord

0 commit comments

Comments
 (0)