mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Mangling] Uniformly use "So" for imported decls.
...and repurpose "SC" for (C)lang-importer-synthesized decls, instead of just decls that are C-like instead of ObjC-like. (See next commits.)
This commit is contained in:
@@ -251,14 +251,14 @@ func testRenamedOptionyEnum() {
|
||||
#if !swift(>=4)
|
||||
|
||||
func useSwift3Name(_: ImportantCStruct) {}
|
||||
// CHECK-SILGEN-3: sil hidden @$S9versioned13useSwift3NameyySC20VeryImportantCStructVF
|
||||
// CHECK-SILGEN-3: sil hidden @$S9versioned13useSwift3NameyySo20VeryImportantCStructVF
|
||||
|
||||
func useNewlyNested(_: InnerInSwift4) {}
|
||||
// CHECK-SILGEN-3: sil hidden @$S9versioned14useNewlyNestedyySC5OuterV5InnerVF
|
||||
// CHECK-SILGEN-3: sil hidden @$S9versioned14useNewlyNestedyySo5OuterV5InnerVF
|
||||
#endif
|
||||
|
||||
func useSwift4Name(_: VeryImportantCStruct) {}
|
||||
// CHECK-SILGEN: sil hidden @$S9versioned13useSwift4NameyySC20VeryImportantCStructVF
|
||||
// CHECK-SILGEN: sil hidden @$S9versioned13useSwift4NameyySo20VeryImportantCStructVF
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user