mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Replace the use of -sil-inline-threshold with @inline(never) on specific functions. This is required in some cases in order to remove the generic specialization pass and allow the inliner to do the specialization instead (specifically the cases where the parameter is 0, which causes us to exit the inliner immediately). Also add public in some places to ensure that we do not toss out functions before we even make it to the inliner (once the standalone generic specialization pass is removed). Swift SVN r31126
13 lines
172 B
Swift
13 lines
172 B
Swift
|
|
public struct X {
|
|
public init() { }
|
|
}
|
|
|
|
@inline(never)
|
|
public func the_thing<T>(t t : T) { }
|
|
|
|
@inline(never)
|
|
public func the_thing_it_does(x x : X) {
|
|
the_thing(t: x)
|
|
}
|