Skip to content

Commit ac41fb6

Browse files
committed
Serialization: Skip implementation-only witness tables
1 parent 810c418 commit ac41fb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Serialization/SerializeSIL.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3508,6 +3508,12 @@ void SILSerializer::writeDebugScopes(const SILDebugScope *Scope,
35083508
}
35093509

35103510
void SILSerializer::writeSILWitnessTable(const SILWitnessTable &wt) {
3511+
if (Options.SkipImplementationOnlyDecls &&
3512+
wt.getConformingNominal()->getAttrs().hasAttribute<
3513+
ImplementationOnlyAttr>()) {
3514+
return;
3515+
}
3516+
35113517
WitnessTableList[wt.getName()] = NextWitnessTableID++;
35123518
WitnessTableOffset.push_back(Out.GetCurrentBitNo());
35133519

0 commit comments

Comments
 (0)