mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -101,10 +101,10 @@ class SwiftBenchHarness:
|
||||
self.log("Processing source file: %s." % name, 2)
|
||||
|
||||
header = """
|
||||
@asmname("mach_absolute_time") func __mach_absolute_time__() -> UInt64
|
||||
@asmname("opaqueGetInt32")
|
||||
@_silgen_name("mach_absolute_time") func __mach_absolute_time__() -> UInt64
|
||||
@_silgen_name("opaqueGetInt32")
|
||||
func _opaqueGetInt32(x: Int) -> Int
|
||||
@asmname("opaqueGetInt64")
|
||||
@_silgen_name("opaqueGetInt64")
|
||||
func _opaqueGetInt64(x: Int) -> Int
|
||||
|
||||
@inline(never)
|
||||
|
||||
Reference in New Issue
Block a user