Revert "Merge pull request #1725 from atrick/specialize"

Temporarily reverting @_specialize because stdlib unit tests are
failing on an internal branch during deserialization.

This reverts commit e2c43cfe14, reversing
changes made to 9078011f93.
This commit is contained in:
Andrew Trick
2016-03-18 22:31:29 -07:00
parent b7bc7c993b
commit 5bda28e1cb
32 changed files with 288 additions and 1869 deletions

View File

@@ -497,7 +497,6 @@ void Serializer::writeBlockInfoBlock() {
BLOCK_RECORD(sil_block, SIL_DEFAULT_WITNESS_TABLE_NO_ENTRY);
BLOCK_RECORD(sil_block, SIL_GENERIC_OUTER_PARAMS);
BLOCK_RECORD(sil_block, SIL_INST_WITNESS_METHOD);
BLOCK_RECORD(sil_block, SIL_SPECIALIZE_ATTR);
// These layouts can exist in both decl blocks and sil blocks.
#define BLOCK_RECORD_WITH_NAMESPACE(K, X) emitRecordID(Out, X, #X, nameBuffer)
@@ -1800,15 +1799,6 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
blob);
return;
}
case DAK_Specialize: {
auto abbrCode = DeclTypeAbbrCodes[SpecializeDeclAttrLayout::Code];
SmallVector<TypeID, 8> typeIDs;
for (auto tl : cast<SpecializeAttr>(DA)->getTypeLocs())
typeIDs.push_back(addTypeRef(tl.getType()));
SpecializeDeclAttrLayout::emitRecord(Out, ScratchRecord, abbrCode, typeIDs);
return;
}
}
}
@@ -3005,7 +2995,7 @@ void Serializer::writeType(Type ty) {
fnTy->isNoReturn(),
fnTy->throws(),
genericParams);
// Write requirements.
writeRequirements(fnTy->getRequirements());
break;