Skip to content

Commit 3c3c117

Browse files
committed
Fix namespacing / Update more tests
1 parent 4152f34 commit 3c3c117

File tree

6 files changed

+31
-47
lines changed

6 files changed

+31
-47
lines changed

include/swift/SIL/GenericSpecializationMangler.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SpecializationMangler : public Mangle::ASTMangler {
3737
/// The specialization pass.
3838
SpecializationPass Pass;
3939

40-
SerializedKind_t Serialized;
40+
swift::SerializedKind_t Serialized;
4141

4242
/// The original function which is specialized.
4343
SILFunction *Function;
@@ -50,12 +50,12 @@ class SpecializationMangler : public Mangle::ASTMangler {
5050
PossibleEffects RemovedEffects;
5151

5252
protected:
53-
SpecializationMangler(SpecializationPass P, SerializedKind_t Serialized,
53+
SpecializationMangler(SpecializationPass P, swift::SerializedKind_t Serialized,
5454
SILFunction *F)
5555
: Pass(P), Serialized(Serialized), Function(F),
5656
ArgOpBuffer(ArgOpStorage) {}
5757

58-
SpecializationMangler(SpecializationPass P, SerializedKind_t Serialized,
58+
SpecializationMangler(SpecializationPass P, swift::SerializedKind_t Serialized,
5959
std::string functionName)
6060
: Pass(P), Serialized(Serialized), Function(nullptr),
6161
FunctionName(functionName), ArgOpBuffer(ArgOpStorage) {}
@@ -88,7 +88,7 @@ class GenericSpecializationMangler : public SpecializationMangler {
8888
SubstitutionMap subs);
8989

9090
public:
91-
GenericSpecializationMangler(SILFunction *F, SerializedKind_t Serialized)
91+
GenericSpecializationMangler(SILFunction *F, swift::SerializedKind_t Serialized)
9292
: SpecializationMangler(SpecializationPass::GenericSpecializer,
9393
Serialized, F) {}
9494

include/swift/SIL/SILMoveOnlyDeinit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
namespace swift {
3131

32-
enum SerializedKind_t : unsigned char;
32+
enum SerializedKind_t : uint8_t;
3333
class SILFunction;
3434
class SILModule;
3535

include/swift/SILOptimizer/Utils/SpecializationMangler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PartialSpecializationMangler : public SpecializationMangler {
3434
public:
3535
PartialSpecializationMangler(SILFunction *F,
3636
CanSILFunctionType SpecializedFnTy,
37-
SerializedKind_t Serialized, bool isReAbstracted)
37+
swift::SerializedKind_t Serialized, bool isReAbstracted)
3838
: SpecializationMangler(SpecializationPass::GenericSpecializer,
3939
Serialized, F),
4040
SpecializedFnTy(SpecializedFnTy), isReAbstracted(isReAbstracted) {}
@@ -93,7 +93,7 @@ class FunctionSignatureSpecializationMangler : public SpecializationMangler {
9393

9494
public:
9595
FunctionSignatureSpecializationMangler(SpecializationPass Pass,
96-
SerializedKind_t Serialized,
96+
swift::SerializedKind_t Serialized,
9797
SILFunction *F);
9898
// For arguments / return values
9999
void setArgumentConstantProp(unsigned OrigArgIdx, SILInstruction *constInst);

lib/SIL/IR/Linker.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ void SILLinkerVisitor::maybeAddFunctionToWorklist(
114114
!Mod.isSerialized() &&
115115
hasSharedVisibility(linkage) &&
116116
!F->isSerialized()) {
117-
llvm::dbgs() << "\nSIL FUNC: " << F->getName();
118-
llvm::dbgs() << "\n";
119-
if (F->getName() == "$s3Lib8PubKlassCAA0B5ProtoA2aDP4dataSivgTW")
120-
F->dump();
121-
llvm::dbgs() << "\n";
122-
123117
F->setSerializedKind(IsSerialized);
124118

125119
// Push the function to the worklist so that all referenced shared functions

test/SILOptimizer/package-cmo-serialize-tables.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,15 @@ package func runPkg(_ arg: [any PkgProto]) {
505505
print(arg)
506506
}
507507

508-
//CHECK-LABEL: sil_vtable [serialized] ParentPubKlass {
508+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPubKlass {
509509
//CHECK-NEXT: #ParentPubKlass.parentPubVar!getter: (ParentPubKlass) -> () -> Int : @$s3Lib14ParentPubKlassC06parentC3VarSivg
510510
//CHECK-NEXT: #ParentPubKlass.parentPubVar!setter: (ParentPubKlass) -> (Int) -> () : @$s3Lib14ParentPubKlassC06parentC3VarSivs
511511
//CHECK-NEXT: #ParentPubKlass.parentPubVar!modify: (ParentPubKlass) -> () -> () : @$s3Lib14ParentPubKlassC06parentC3VarSivM
512512
//CHECK-NEXT: #ParentPubKlass.init!allocator: (ParentPubKlass.Type) -> (Int) -> ParentPubKlass : @$s3Lib14ParentPubKlassCyACSicfC
513513
//CHECK-NEXT: #ParentPubKlass.parentPubFunc: (ParentPubKlass) -> () -> () : @$s3Lib14ParentPubKlassC06parentC4FuncyyF
514514
//CHECK-NEXT: #ParentPubKlass.deinit!deallocator: @$s3Lib14ParentPubKlassCfD
515515

516-
//CHECK-LABEL: sil_vtable [serialized] PubKlass {
516+
//CHECK-LABEL: sil_vtable [serialized_for_package] PubKlass {
517517
//CHECK-NEXT: #ParentPubKlass.parentPubVar!getter: (ParentPubKlass) -> () -> Int : @$s3Lib14ParentPubKlassC06parentC3VarSivg [inherited]
518518
//CHECK-NEXT: #ParentPubKlass.parentPubVar!setter: (ParentPubKlass) -> (Int) -> () : @$s3Lib14ParentPubKlassC06parentC3VarSivs [inherited]
519519
//CHECK-NEXT: #ParentPubKlass.parentPubVar!modify: (ParentPubKlass) -> () -> () : @$s3Lib14ParentPubKlassC06parentC3VarSivM [inherited]
@@ -526,7 +526,7 @@ package func runPkg(_ arg: [any PkgProto]) {
526526
//CHECK-NEXT: #PubKlass.pubFunc: (PubKlass) -> () -> () : @$s3Lib8PubKlassC7pubFuncyyF
527527
//CHECK-NEXT: #PubKlass.deinit!deallocator: @$s3Lib8PubKlassCfD
528528

529-
//CHECK-LABEL: sil_vtable [serialized] ParentPubKlassWithInternalMemberX {
529+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPubKlassWithInternalMemberX {
530530
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!getter: (ParentPubKlassWithInternalMemberX) -> () -> Int : @$s3Lib33ParentPubKlassWithInternalMemberXC06parentC3VarSivg
531531
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!setter: (ParentPubKlassWithInternalMemberX) -> (Int) -> () : @$s3Lib33ParentPubKlassWithInternalMemberXC06parentC3VarSivs
532532
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!modify: (ParentPubKlassWithInternalMemberX) -> () -> () : @$s3Lib33ParentPubKlassWithInternalMemberXC06parentC3VarSivM
@@ -535,7 +535,7 @@ package func runPkg(_ arg: [any PkgProto]) {
535535
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubFuncB: (ParentPubKlassWithInternalMemberX) -> () -> () : @$s3Lib33ParentPubKlassWithInternalMemberXC06parentC5FuncByyF
536536
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.deinit!deallocator: @$s3Lib33ParentPubKlassWithInternalMemberXCfD
537537

538-
//CHECK-LABEL: sil_vtable [serialized] PubKlassX {
538+
//CHECK-LABEL: sil_vtable [serialized_for_package] PubKlassX {
539539
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!getter: (ParentPubKlassWithInternalMemberX) -> () -> Int : @$s3Lib9PubKlassXC06parentB3VarSivg [override]
540540
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!setter: (ParentPubKlassWithInternalMemberX) -> (Int) -> () : @$s3Lib9PubKlassXC06parentB3VarSivs [override]
541541
//CHECK-NEXT: #ParentPubKlassWithInternalMemberX.parentPubVar!modify: (ParentPubKlassWithInternalMemberX) -> () -> () : @$s3Lib9PubKlassXC06parentB3VarSivM [override]
@@ -549,27 +549,27 @@ package func runPkg(_ arg: [any PkgProto]) {
549549
//CHECK-NEXT: #PubKlassX.pubFunc: (PubKlassX) -> () -> () : @$s3Lib9PubKlassXC7pubFuncyyF
550550
//CHECK-NEXT: #PubKlassX.deinit!deallocator: @$s3Lib9PubKlassXCfD
551551

552-
//CHECK-LABEL: sil_vtable [serialized] ParentPubKlassWithInternalMemberY {
552+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPubKlassWithInternalMemberY {
553553
//CHECK-NEXT: #ParentPubKlassWithInternalMemberY.init!allocator: (ParentPubKlassWithInternalMemberY.Type) -> (Int) -> ParentPubKlassWithInternalMemberY : @$s3Lib33ParentPubKlassWithInternalMemberYCyACSicfC
554554
//CHECK-NEXT: #ParentPubKlassWithInternalMemberY.deinit!deallocator: @$s3Lib33ParentPubKlassWithInternalMemberYCfD
555555

556-
//CHECK-LABEL: sil_vtable [serialized] PubKlassY {
556+
//CHECK-LABEL: sil_vtable [serialized_for_package] PubKlassY {
557557
//CHECK-NEXT: #ParentPubKlassWithInternalMemberY.init!allocator: (ParentPubKlassWithInternalMemberY.Type) -> (Int) -> ParentPubKlassWithInternalMemberY : @$s3Lib9PubKlassYCyACSicfC [override]
558558
//CHECK-NEXT: #PubKlassY.pubVar!getter: (PubKlassY) -> () -> String : @$s3Lib9PubKlassYC6pubVarSSvg
559559
//CHECK-NEXT: #PubKlassY.pubVar!setter: (PubKlassY) -> (String) -> () : @$s3Lib9PubKlassYC6pubVarSSvs
560560
//CHECK-NEXT: #PubKlassY.pubVar!modify: (PubKlassY) -> () -> () : @$s3Lib9PubKlassYC6pubVarSSvM
561561
//CHECK-NEXT: #PubKlassY.init!allocator: (PubKlassY.Type) -> () -> PubKlassY : @$s3Lib9PubKlassYCACycfC
562562
//CHECK-NEXT: #PubKlassY.deinit!deallocator: @$s3Lib9PubKlassYCfD
563563

564-
//CHECK-LABEL: sil_vtable [serialized] ParentPkgKlass {
565-
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!getter: (ParentPkgKlass) -> () -> Int : @$s3Lib14ParentPkgKlassC06parentC3VarSivg
564+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPkgKlass {
565+
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!getter: (ParentPkgKlass) -> () -> Int : @$s3Lib14ParentPkgKlassC06parentC3VarSivg
566566
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!setter: (ParentPkgKlass) -> (Int) -> () : @$s3Lib14ParentPkgKlassC06parentC3VarSivs
567567
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!modify: (ParentPkgKlass) -> () -> () : @$s3Lib14ParentPkgKlassC06parentC3VarSivM
568568
//CHECK-NEXT: #ParentPkgKlass.init!allocator: (ParentPkgKlass.Type) -> (Int) -> ParentPkgKlass : @$s3Lib14ParentPkgKlassCyACSicfC
569569
//CHECK-NEXT: #ParentPkgKlass.parentPkgFunc: (ParentPkgKlass) -> () -> Int : @$s3Lib14ParentPkgKlassC06parentC4FuncSiyF
570570
//CHECK-NEXT: #ParentPkgKlass.deinit!deallocator: @$s3Lib14ParentPkgKlassCfD
571571

572-
//CHECK-LABEL: sil_vtable [serialized] PkgKlass {
572+
//CHECK-LABEL: sil_vtable [serialized_for_package] PkgKlass {
573573
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!getter: (ParentPkgKlass) -> () -> Int : @$s3Lib14ParentPkgKlassC06parentC3VarSivg [inherited]
574574
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!setter: (ParentPkgKlass) -> (Int) -> () : @$s3Lib14ParentPkgKlassC06parentC3VarSivs [inherited]
575575
//CHECK-NEXT: #ParentPkgKlass.parentPkgVar!modify: (ParentPkgKlass) -> () -> () : @$s3Lib14ParentPkgKlassC06parentC3VarSivM [inherited]
@@ -582,7 +582,7 @@ package func runPkg(_ arg: [any PkgProto]) {
582582
//CHECK-NEXT: #PkgKlass.pkgFunc: (PkgKlass) -> () -> () : @$s3Lib8PkgKlassC7pkgFuncyyF
583583
//CHECK-NEXT: #PkgKlass.deinit!deallocator: @$s3Lib8PkgKlassCfD
584584

585-
//CHECK-LABEL: sil_vtable [serialized] ParentPkgKlassWithInternalMemberX {
585+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPkgKlassWithInternalMemberX {
586586
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!getter: (ParentPkgKlassWithInternalMemberX) -> () -> Int : @$s3Lib33ParentPkgKlassWithInternalMemberXC06parentC3VarSivg
587587
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!setter: (ParentPkgKlassWithInternalMemberX) -> (Int) -> () : @$s3Lib33ParentPkgKlassWithInternalMemberXC06parentC3VarSivs
588588
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!modify: (ParentPkgKlassWithInternalMemberX) -> () -> () : @$s3Lib33ParentPkgKlassWithInternalMemberXC06parentC3VarSivM
@@ -591,7 +591,7 @@ package func runPkg(_ arg: [any PkgProto]) {
591591
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgFuncB: (ParentPkgKlassWithInternalMemberX) -> () -> () : @$s3Lib33ParentPkgKlassWithInternalMemberXC06parentC5FuncByyF
592592
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.deinit!deallocator: @$s3Lib33ParentPkgKlassWithInternalMemberXCfD
593593

594-
//CHECK-LABEL: sil_vtable [serialized] PkgKlassX {
594+
//CHECK-LABEL: sil_vtable [serialized_for_package] PkgKlassX {
595595
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!getter: (ParentPkgKlassWithInternalMemberX) -> () -> Int : @$s3Lib9PkgKlassXC06parentB3VarSivg [override]
596596
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!setter: (ParentPkgKlassWithInternalMemberX) -> (Int) -> () : @$s3Lib9PkgKlassXC06parentB3VarSivs [override]
597597
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberX.parentPkgVar!modify: (ParentPkgKlassWithInternalMemberX) -> () -> () : @$s3Lib9PkgKlassXC06parentB3VarSivM [override]
@@ -605,35 +605,35 @@ package func runPkg(_ arg: [any PkgProto]) {
605605
//CHECK-NEXT: #PkgKlassX.pubFunc: (PkgKlassX) -> () -> () : @$s3Lib9PkgKlassXC7pubFuncyyF
606606
//CHECK-NEXT: #PkgKlassX.deinit!deallocator: @$s3Lib9PkgKlassXCfD
607607

608-
//CHECK-LABEL: sil_vtable [serialized] ParentPkgKlassWithInternalMemberY {
608+
//CHECK-LABEL: sil_vtable [serialized_for_package] ParentPkgKlassWithInternalMemberY {
609609
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberY.init!allocator: (ParentPkgKlassWithInternalMemberY.Type) -> (Int) -> ParentPkgKlassWithInternalMemberY : @$s3Lib33ParentPkgKlassWithInternalMemberYCyACSicfC
610610
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberY.deinit!deallocator: @$s3Lib33ParentPkgKlassWithInternalMemberYCfD
611611

612-
//CHECK-LABEL: sil_vtable [serialized] PkgKlassY {
612+
//CHECK-LABEL: sil_vtable [serialized_for_package] PkgKlassY {
613613
//CHECK-NEXT: #ParentPkgKlassWithInternalMemberY.init!allocator: (ParentPkgKlassWithInternalMemberY.Type) -> (Int) -> ParentPkgKlassWithInternalMemberY : @$s3Lib9PkgKlassYCyACSicfC [override]
614614
//CHECK-NEXT: #PkgKlassY.pkgVar!getter: (PkgKlassY) -> () -> String : @$s3Lib9PkgKlassYC6pkgVarSSvg
615615
//CHECK-NEXT: #PkgKlassY.pkgVar!setter: (PkgKlassY) -> (String) -> () : @$s3Lib9PkgKlassYC6pkgVarSSvs
616616
//CHECK-NEXT: #PkgKlassY.pkgVar!modify: (PkgKlassY) -> () -> () : @$s3Lib9PkgKlassYC6pkgVarSSvM
617617
//CHECK-NEXT: #PkgKlassY.init!allocator: (PkgKlassY.Type) -> () -> PkgKlassY : @$s3Lib9PkgKlassYCACycfC
618618
//CHECK-NEXT: #PkgKlassY.deinit!deallocator: @$s3Lib9PkgKlassYCfD
619619

620-
//CHECK-LABEL: sil_vtable [serialized] PubKlassZ {
620+
//CHECK-LABEL: sil_vtable [serialized_for_package] PubKlassZ {
621621
//CHECK-NEXT: #PubKlassZ.env!getter: (PubKlassZ) -> () -> UInt16 : @$s3Lib9PubKlassZC3envs6UInt16Vvg
622622
//CHECK-NEXT: #PubKlassZ.env!setter: (PubKlassZ) -> (UInt16) -> () : @$s3Lib9PubKlassZC3envs6UInt16Vvs
623623
//CHECK-NEXT: #PubKlassZ.env!modify: (PubKlassZ) -> () -> () : @$s3Lib9PubKlassZC3envs6UInt16VvM
624624
//CHECK-NEXT: #PubKlassZ.init!allocator: (PubKlassZ.Type) -> (UInt16) -> PubKlassZ : @$s3Lib9PubKlassZC8rawValueACs6UInt16V_tcfC
625625
//CHECK-NEXT: #PubKlassZ.pubFunc: (PubKlassZ) -> () -> () : @$s3Lib9PubKlassZC7pubFuncyyF
626626
//CHECK-NEXT: #PubKlassZ.deinit!deallocator: @$s3Lib9PubKlassZCfD
627627

628-
//CHECK-LABEL: sil_vtable [serialized] PkgKlassZ {
628+
//CHECK-LABEL: sil_vtable [serialized_for_package] PkgKlassZ {
629629
//CHECK-NEXT: #PkgKlassZ.env!getter: (PkgKlassZ) -> () -> UInt16 : @$s3Lib9PkgKlassZC3envs6UInt16Vvg
630630
//CHECK-NEXT: #PkgKlassZ.env!setter: (PkgKlassZ) -> (UInt16) -> () : @$s3Lib9PkgKlassZC3envs6UInt16Vvs
631631
//CHECK-NEXT: #PkgKlassZ.env!modify: (PkgKlassZ) -> () -> () : @$s3Lib9PkgKlassZC3envs6UInt16VvM
632632
//CHECK-NEXT: #PkgKlassZ.init!allocator: (PkgKlassZ.Type) -> (UInt16) -> PkgKlassZ : @$s3Lib9PkgKlassZC8rawValueACs6UInt16V_tcfC
633633
//CHECK-NEXT: #PkgKlassZ.pkgFunc: (PkgKlassZ) -> () -> () : @$s3Lib9PkgKlassZC7pkgFuncyyF
634634
//CHECK-NEXT: #PkgKlassZ.deinit!deallocator: @$s3Lib9PkgKlassZCfD
635635

636-
//CHECK-LABEL: sil_witness_table [serialized] PubKlassZ: PubProto module Lib {
636+
//CHECK-LABEL: sil_witness_table [serialized_for_package] PubKlassZ: PubProto module Lib {
637637
//CHECK-NEXT: associated_type Element: PubKlassZ
638638
//CHECK-NEXT: method #PubProto.root!getter: <Self where Self : PubProto> (Self.Type) -> () -> UInt16 : @$s3Lib9PubKlassZCAA0B5ProtoA2aDP4roots6UInt16VvgZTW
639639
//CHECK-NEXT: method #PubProto.env!getter: <Self where Self : PubProto> (Self) -> () -> UInt16 : @$s3Lib9PubKlassZCAA0B5ProtoA2aDP3envs6UInt16VvgTW
@@ -642,7 +642,7 @@ package func runPkg(_ arg: [any PkgProto]) {
642642
//CHECK-NEXT: method #PubProto.init!allocator: <Self where Self : PubProto> (Self.Type) -> (UInt16) -> Self : @$s3Lib9PubKlassZCAA0B5ProtoA2aDP8rawValuexs6UInt16V_tcfCTW
643643
//CHECK-NEXT: method #PubProto.pubFunc: <Self where Self : PubProto> (Self) -> () -> () : @$s3Lib9PubKlassZCAA0B5ProtoA2aDP7pubFuncyyFTW
644644

645-
//CHECK-LABEL: sil_witness_table [serialized] PubStruct: PubProto module Lib {
645+
//CHECK-LABEL: sil_witness_table [serialized_for_package] PubStruct: PubProto module Lib {
646646
//CHECK-NEXT: associated_type Element: PubStruct
647647
//CHECK-NEXT: method #PubProto.root!getter: <Self where Self : PubProto> (Self.Type) -> () -> UInt16 : @$s3Lib9PubStructVAA0B5ProtoA2aDP4roots6UInt16VvgZTW
648648
//CHECK-NEXT: method #PubProto.env!getter: <Self where Self : PubProto> (Self) -> () -> UInt16 : @$s3Lib9PubStructVAA0B5ProtoA2aDP3envs6UInt16VvgTW
@@ -651,13 +651,13 @@ package func runPkg(_ arg: [any PkgProto]) {
651651
//CHECK-NEXT: method #PubProto.init!allocator: <Self where Self : PubProto> (Self.Type) -> (UInt16) -> Self : @$s3Lib9PubStructVAA0B5ProtoA2aDP8rawValuexs6UInt16V_tcfCTW
652652
//CHECK-NEXT: method #PubProto.pubFunc: <Self where Self : PubProto> (Self) -> () -> () : @$s3Lib9PubStructVAA0B5ProtoA2aDP7pubFuncyyFTW
653653

654-
//CHECK-LABEL: sil_witness_table [serialized] PubStructX: PubSimpleProto module Lib {
654+
//CHECK-LABEL: sil_witness_table [serialized_for_package] PubStructX: PubSimpleProto module Lib {
655655
//CHECK-NEXT: method #PubSimpleProto.pubVar!getter: <Self where Self : PubSimpleProto> (Self) -> () -> Int : @$s3Lib10PubStructXVAA0B11SimpleProtoA2aDP6pubVarSivgTW
656656
//CHECK-NEXT: method #PubSimpleProto.pubVar!setter: <Self where Self : PubSimpleProto> (inout Self) -> (Int) -> () : @$s3Lib10PubStructXVAA0B11SimpleProtoA2aDP6pubVarSivsTW
657657
//CHECK-NEXT: method #PubSimpleProto.pubVar!modify: <Self where Self : PubSimpleProto> (inout Self) -> () -> () : @$s3Lib10PubStructXVAA0B11SimpleProtoA2aDP6pubVarSivMTW
658658
//CHECK-NEXT: method #PubSimpleProto.pubFunc: <Self where Self : PubSimpleProto> (Self) -> () -> Int : @$s3Lib10PubStructXVAA0B11SimpleProtoA2aDP7pubFuncSiyFTW
659659

660-
//CHECK-LABEL: sil_witness_table package [serialized] PkgKlassZ: PkgProto module Lib {
660+
//CHECK-LABEL: sil_witness_table package [serialized_for_package] PkgKlassZ: PkgProto module Lib {
661661
//CHECK-NEXT: associated_type Element: PkgKlassZ
662662
//CHECK-NEXT: method #PkgProto.root!getter: <Self where Self : PkgProto> (Self.Type) -> () -> UInt16 : @$s3Lib9PkgKlassZCAA0B5ProtoA2aDP4roots6UInt16VvgZTW
663663
//CHECK-NEXT: method #PkgProto.env!getter: <Self where Self : PkgProto> (Self) -> () -> UInt16 : @$s3Lib9PkgKlassZCAA0B5ProtoA2aDP3envs6UInt16VvgTW
@@ -666,7 +666,7 @@ package func runPkg(_ arg: [any PkgProto]) {
666666
//CHECK-NEXT: method #PkgProto.init!allocator: <Self where Self : PkgProto> (Self.Type) -> (UInt16) -> Self : @$s3Lib9PkgKlassZCAA0B5ProtoA2aDP8rawValuexs6UInt16V_tcfCTW
667667
//CHECK-NEXT: method #PkgProto.pkgFunc: <Self where Self : PkgProto> (Self) -> () -> () : @$s3Lib9PkgKlassZCAA0B5ProtoA2aDP7pkgFuncyyFTW
668668

669-
//CHECK-LABEL: sil_witness_table package [serialized] PkgStruct: PkgProto module Lib {
669+
//CHECK-LABEL: sil_witness_table package [serialized_for_package] PkgStruct: PkgProto module Lib {
670670
//CHECK-NEXT: associated_type Element: PkgStruct
671671
//CHECK-NEXT: method #PkgProto.root!getter: <Self where Self : PkgProto> (Self.Type) -> () -> UInt16 : @$s3Lib9PkgStructVAA0B5ProtoA2aDP4roots6UInt16VvgZTW
672672
//CHECK-NEXT: method #PkgProto.env!getter: <Self where Self : PkgProto> (Self) -> () -> UInt16 : @$s3Lib9PkgStructVAA0B5ProtoA2aDP3envs6UInt16VvgTW
@@ -675,8 +675,8 @@ package func runPkg(_ arg: [any PkgProto]) {
675675
//CHECK-NEXT: method #PkgProto.init!allocator: <Self where Self : PkgProto> (Self.Type) -> (UInt16) -> Self : @$s3Lib9PkgStructVAA0B5ProtoA2aDP8rawValuexs6UInt16V_tcfCTW
676676
//CHECK-NEXT: method #PkgProto.pkgFunc: <Self where Self : PkgProto> (Self) -> () -> () : @$s3Lib9PkgStructVAA0B5ProtoA2aDP7pkgFuncyyFTW
677677

678-
//CHECK-LABEL: sil_witness_table package [serialized] PkgStructX: PkgSimpleProto module Lib {
679-
//CHECK-NEXT: method #PkgSimpleProto.pkgVar!getter: <Self where Self : PkgSimpleProto> (Self) -> () -> Int : @$s3Lib10PkgStructXVAA0B11SimpleProtoA2aDP6pkgVarSivgTW
678+
//CHECK-LABEL: sil_witness_table package [serialized_for_package] PkgStructX: PkgSimpleProto module Lib {
679+
//CHECK-NEXT: method #PkgSimpleProto.pkgVar!getter: <Self where Self : PkgSimpleProto> (Self) -> () -> Int : @$s3Lib10PkgStructXVAA0B11SimpleProtoA2aDP6pkgVarSivgTW
680680
//CHECK-NEXT: method #PkgSimpleProto.pkgVar!setter: <Self where Self : PkgSimpleProto> (inout Self) -> (Int) -> () : @$s3Lib10PkgStructXVAA0B11SimpleProtoA2aDP6pkgVarSivsTW
681681
//CHECK-NEXT: method #PkgSimpleProto.pkgVar!modify: <Self where Self : PkgSimpleProto> (inout Self) -> () -> () : @$s3Lib10PkgStructXVAA0B11SimpleProtoA2aDP6pkgVarSivMTW
682682
//CHECK-NEXT: method #PkgSimpleProto.pkgFunc: <Self where Self : PkgSimpleProto> (Self) -> () -> Int : @$s3Lib10PkgStructXVAA0B11SimpleProtoA2aDP7pkgFuncSiyFTW

0 commit comments

Comments
 (0)