@@ -553,7 +553,6 @@ static const ProtocolConformanceDescriptor *
553
553
swift_conformsToSwiftProtocolImpl (const Metadata * const type,
554
554
const ProtocolDescriptor *protocol,
555
555
StringRef module) {
556
- fprintf (stderr, " in impl2\n " );
557
556
auto &C = Conformances.get ();
558
557
559
558
// See if we have a cached conformance. The ConcurrentMap data structure
@@ -580,25 +579,17 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
580
579
C.cacheFailure (type, protocol, snapshot.count ());
581
580
return nullptr ;
582
581
}
583
- fprintf (stderr, " got to really scan \n " );
582
+
584
583
// Really scan conformance records.
585
584
for (size_t i = startIndex; i < endIndex; i++) {
586
- fprintf (stderr, " index = %lx\n " , (unsigned long )i);
587
585
auto §ion = snapshot.Start [i];
588
586
// Eagerly pull records for nondependent witnesses into our cache.
589
587
for (const auto &record : section) {
590
- fprintf (stderr, " got a record\n " );
591
- auto descriptorPtr = record.get ();
592
- auto &descriptor = *descriptorPtr;
593
- fprintf (stderr, " got the descriptor: %p\n " , descriptorPtr);
594
- fprintf (stderr, " got the protocol: %p\n " , descriptor.getProtocol ());
595
- descriptor.getProtocol ()->dump ();
596
- fprintf (stderr, " got it\n " );
588
+ auto &descriptor = *record.get ();
597
589
598
590
// We only care about conformances for this protocol.
599
591
if (descriptor.getProtocol () != protocol)
600
592
continue ;
601
- fprintf (stderr, " about to get matching type\n " );
602
593
603
594
// If there's a matching type, record the positive result.
604
595
ConformanceCandidate candidate (descriptor);
@@ -613,7 +604,6 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
613
604
}
614
605
615
606
// Conformance scan is complete.
616
- fprintf (stderr, " about to update cache\n " );
617
607
618
608
// Search the cache once more, and this time update the cache if necessary.
619
609
FoundConformance = searchInConformanceCache (type, protocol);
@@ -628,18 +618,10 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
628
618
static const WitnessTable *
629
619
swift_conformsToProtocolImpl (const Metadata * const type,
630
620
const ProtocolDescriptor *protocol) {
631
- // WebAssembly: logging pls
632
- fprintf (stderr, " swift_conformsToProtocolImpl: %p %p\n " , type, protocol);
633
- protocol->dump ();
634
- fprintf (stderr, " trying to dump the type now\n " );
635
- type->dump ();
636
- fprintf (stderr, " dumped the type\n " );
637
- // end WebAssembly
638
621
auto description =
639
622
swift_conformsToSwiftProtocol (type, protocol, StringRef ());
640
623
if (!description)
641
624
return nullptr ;
642
- description->getProtocol ()->dump ();
643
625
644
626
return description->getWitnessTable (
645
627
findConformingSuperclass (type, description));
0 commit comments