mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "IRGen: Deserialize SIL witness tables and shared-linkage definitions by need."
This commit is contained in:
@@ -1606,9 +1606,7 @@ Serializer::writeConformance(ProtocolConformanceRef conformanceRef,
|
||||
switch (conformance->getKind()) {
|
||||
case ProtocolConformanceKind::Normal: {
|
||||
auto normal = cast<NormalProtocolConformance>(conformance);
|
||||
if (!isDeclXRef(getDeclForContext(normal->getDeclContext()))
|
||||
&& !isa<ClangModuleUnit>(normal->getDeclContext()
|
||||
->getModuleScopeContext())) {
|
||||
if (!isDeclXRef(getDeclForContext(normal->getDeclContext()))) {
|
||||
// A normal conformance in this module file.
|
||||
unsigned abbrCode = abbrCodes[NormalProtocolConformanceIdLayout::Code];
|
||||
NormalProtocolConformanceIdLayout::emitRecord(Out, ScratchRecord,
|
||||
|
||||
Reference in New Issue
Block a user