mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
11 lines
155 B
Swift
11 lines
155 B
Swift
|
|
public typealias Int = Builtin.Int32
|
|
|
|
public struct Container<V> {
|
|
@inline(never)
|
|
public func doSomething() {}
|
|
@inline(never)
|
|
public init() {}
|
|
}
|
|
|