mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
This commit is contained in:
@@ -3021,7 +3021,7 @@ extern "C" const Metadata *swift_getBridgedNonVerbatimObjectiveCType(
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// @asmname("swift_bridgeNonVerbatimFromObjectiveC")
|
||||
// @_silgen_name("swift_bridgeNonVerbatimFromObjectiveC")
|
||||
// func _bridgeNonVerbatimFromObjectiveC<NativeType>(
|
||||
// x: AnyObject,
|
||||
// nativeType: NativeType.Type
|
||||
@@ -3063,7 +3063,7 @@ swift_bridgeNonVerbatimFromObjectiveC(
|
||||
swift::crash("value type is not bridged to Objective-C");
|
||||
}
|
||||
|
||||
// @asmname("swift_bridgeNonVerbatimFromObjectiveCConditional")
|
||||
// @_silgen_name("swift_bridgeNonVerbatimFromObjectiveCConditional")
|
||||
// func _bridgeNonVerbatimFromObjectiveCConditional<NativeType>(
|
||||
// x: AnyObject,
|
||||
// nativeType: T.Type,
|
||||
|
||||
Reference in New Issue
Block a user