Revert "IRGen: Deserialize SIL witness tables and shared-linkage definitions by need."

This commit is contained in:
Mark Lacey
2018-03-30 22:14:13 -07:00
committed by GitHub
parent a00f252ff8
commit 21134efd22
11 changed files with 11 additions and 122 deletions

View File

@@ -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,