File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
test/ClangImporter/Inputs Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ Cloning code from the standard library
117
117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118
118
119
119
The Swift compiler can copy code from the standard library into the
120
- application for functions marked @_inlineable . This allows the optimizer to
120
+ application for functions marked @inlinable . This allows the optimizer to
121
121
inline calls from the stdlib and improve the performance of code that uses
122
122
common operators such as '+=' or basic containers such as Array. However,
123
123
importing code from the standard library can increase the binary size.
124
124
125
125
To prevent copying of functions from the standard library into the user
126
- program, make sure the function in question is not marked @_inlineable .
126
+ program, make sure the function in question is not marked @inlinable .
127
127
128
128
Array
129
129
~~~~~
Original file line number Diff line number Diff line change 118
118
// / Note that @_silgen_name implementations must also be marked SWIFT_CC(swift).
119
119
// /
120
120
// / SWIFT_RUNTIME_STDLIB_API functions are called by compiler-generated code
121
- // / or by @_inlineable Swift code.
121
+ // / or by @inlinable Swift code.
122
122
// / Such functions must be exported and must be supported forever as API.
123
123
// / The function name should be prefixed with `swift_`.
124
124
// /
130
130
// / SWIFT_RUNTIME_STDLIB_INTERNAL functions are called only by the stdlib.
131
131
// / Such functions are internal and are not exported.
132
132
// / FIXME(sil-serialize-all): _INTERNAL functions are also exported for now
133
- // / until the tide of @_inlineable is rolled back.
133
+ // / until the tide of @inlinable is rolled back.
134
134
// / They really should be LLVM_LIBRARY_VISIBILITY, not SWIFT_RUNTIME_EXPORT.
135
135
#define SWIFT_RUNTIME_STDLIB_API SWIFT_RUNTIME_EXPORT
136
136
#define SWIFT_RUNTIME_STDLIB_SPI SWIFT_RUNTIME_EXPORT
Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ public func _getObjCTypeEncoding<T>(_ type: T.Type) -> UnsafePointer<Int8> {
649
649
/// Convert `x` from its Objective-C representation to its Swift
650
650
/// representation.
651
651
/// COMPILER_INTRINSIC
652
- @_inlineable // FIXME(sil-serialize-all)
652
+ @inlinable // FIXME(sil-serialize-all)
653
653
public func _forceBridgeFromObjectiveC_bridgeable< T: _ObjectiveCBridgeable > (
654
654
_ x: T . _ObjectiveCType ,
655
655
_: T . Type
@@ -662,7 +662,7 @@ public func _forceBridgeFromObjectiveC_bridgeable<T:_ObjectiveCBridgeable> (
662
662
/// Attempt to convert `x` from its Objective-C representation to its Swift
663
663
/// representation.
664
664
/// COMPILER_INTRINSIC
665
- @_inlineable // FIXME(sil-serialize-all)
665
+ @inlinable // FIXME(sil-serialize-all)
666
666
public func _conditionallyBridgeFromObjectiveC_bridgeable< T: _ObjectiveCBridgeable > (
667
667
_ x: T . _ObjectiveCType ,
668
668
_: T . Type
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
import ImportAsMember. Class
3
3
4
- @_versioned
4
+ @usableFromInline
5
5
internal func foo( _ x: IncompleteImportTargetName ) -> Any { return x }
6
6
You can’t perform that action at this time.
0 commit comments