File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
stdlib/public/Backtracing Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -272,9 +272,11 @@ extension arm_gprs {
272
272
throw NotImplemented ( )
273
273
}
274
274
#elseif arch(x86_64)
275
+ @usableFromInline
275
276
@_silgen_name ( " _swift_get_cpu_context " )
276
277
static func _swift_get_cpu_context( ) -> X86_64Context
277
278
279
+ @_transparent
278
280
public static func withCurrentContext< T > ( fn: ( X86_64Context ) throws -> T ) rethrows -> T {
279
281
return try fn ( _swift_get_cpu_context ( ) )
280
282
}
@@ -427,9 +429,11 @@ extension arm_gprs {
427
429
throw NotImplemented ( )
428
430
}
429
431
#elseif arch(i386)
432
+ @usableFromInline
430
433
@_silgen_name ( " _swift_get_cpu_context " )
431
434
static func _swift_get_cpu_context( ) -> I386Context
432
435
436
+ @_transparent
433
437
public static func withCurrentContext< T> ( fn: ( I386Context ) throws -> T ) rethrows -> T {
434
438
return try fn ( _swift_get_cpu_context ( ) )
435
439
}
@@ -630,9 +634,11 @@ extension arm_gprs {
630
634
throw NotImplemented ( )
631
635
}
632
636
#elseif arch(arm64) || arch(arm64_32)
637
+ @usableFromInline
633
638
@_silgen_name ( " _swift_get_cpu_context " )
634
639
static func _swift_get_cpu_context( ) -> ARM64Context
635
640
641
+ @_transparent
636
642
public static func withCurrentContext< T> ( fn: ( ARM64Context ) throws -> T ) rethrows -> T {
637
643
return try fn ( _swift_get_cpu_context ( ) )
638
644
}
@@ -769,9 +775,11 @@ extension arm_gprs {
769
775
throw NotImplemented ( )
770
776
}
771
777
#elseif arch(arm)
778
+ @usableFromInline
772
779
@_silgen_name ( " _swift_get_cpu_context " )
773
780
static func _swift_get_cpu_context( ) -> ARMContext
774
781
782
+ @_transparent
775
783
public static func withCurrentContext< T> ( fn: ( ARMContext ) throws -> T ) rethrows -> T {
776
784
return try fn ( _swift_get_cpu_context ( ) )
777
785
}
You can’t perform that action at this time.
0 commit comments