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