mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For spatial locality on startup. Hide collocating metadata functions in a separate section behind a flag. The default is not to collocate functions. rdar://101593202
10 lines
367 B
Swift
10 lines
367 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir -enable-collocate-metadata-functions | %FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: define{{.*}} swiftcc %swift.metadata_response @"$s28collocate_metadata_functions13GenericStructVMr"({{.*}} section "__TEXT, __textg_swiftm, regular, pure_instructions"
|
|
|
|
public struct GenericStruct<T> {
|
|
var field: T?
|
|
}
|