mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL: add printing and parsing support for specialized vtables
If the vtable refers to a specialized class, a SIL type specifies the bound generic class type:
```
sil_vtable $G<Int> {
// ...
}
```
This commit is contained in:
@@ -41,7 +41,7 @@ public func bar(t: T2) -> MyClass<T2> {
|
||||
// CHECK-SIL: #MyClass.deinit!deallocator: @$s4main7MyClassCfDAA2T1V_Tg5 // specialized MyClass.__deallocating_deinit
|
||||
// CHECK-SIL: }
|
||||
|
||||
// CHECK-SIL: sil_vtable MyClass {
|
||||
// CHECK-SIL: sil_vtable $MyClass<T2> {
|
||||
// CHECK-SIL: #MyClass.t!getter: <T> (MyClass<T>) -> () -> T : @$s4main7MyClassC1txvgAA2T2V_Tg5 // specialized MyClass.t.getter
|
||||
// CHECK-SIL: #MyClass.t!setter: <T> (MyClass<T>) -> (T) -> () : @$s4main7MyClassC1txvsAA2T2V_Tg5 // specialized MyClass.t.setter
|
||||
// CHECK-SIL: #MyClass.t!modify: <T> (MyClass<T>) -> () -> () : @$s4main7MyClassC1txvMAA2T2V_Tg5 // specialized MyClass.t.modify
|
||||
|
||||
Reference in New Issue
Block a user