mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Mandatory inlining performs devirtualization, which is able to deserialize vtables on its own. And since class methods cannot be @_transparent, we don't have to deserialize any vtable entries unless we're in LinkAll mode, which indicates we're running the performance pipeline.
12 lines
213 B
Swift
12 lines
213 B
Swift
public func unknown() {}
|
|
|
|
public class Class {
|
|
@inlinable public class func firstMethod() {
|
|
unknown()
|
|
}
|
|
|
|
@inlinable public class func secondMethod() {}
|
|
|
|
@inlinable public class func thirdMethod() {}
|
|
}
|