Revert "Don't emit protocol conformance cross-references for conformances owned by Clang modules."

This reverts commit r20828.

Swift SVN r20831
This commit is contained in:
Doug Gregor
2014-07-31 17:30:05 +00:00
parent 1aa74e8343
commit ae454c49d6

View File

@@ -788,11 +788,7 @@ Serializer::writeConformance(const ProtocolDecl *protocol,
auto conf = cast<NormalProtocolConformance>(conformance);
// If the conformance comes from another module, write a reference to it.
// We don't do this for Clang modules because there might not be
// anywhere to store the conformance. It will simply be regenerated.
if (conformance->getDeclContext()->getParentModule() != M &&
!ClangModuleUnit::hasClangModule(
conformance->getDeclContext()->getParentModule())) {
if (conformance->getDeclContext()->getParentModule() != M) {
unsigned abbrCode = abbrCodes[XRefProtocolConformanceLayout::Code];
DeclID protoID = addDeclRef(conf->getProtocol());
DeclID typeID = addDeclRef(conf->getType()->getAnyNominal());