mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Remove serialization support for @_allowFeatureSuppression.
It isn't used since the attribute doesn't get serialized.
This commit is contained in:
@@ -2717,6 +2717,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
case DeclAttrKind::RestatedObjCConformance:
|
||||
case DeclAttrKind::ClangImporterSynthesizedType:
|
||||
case DeclAttrKind::PrivateImport:
|
||||
case DeclAttrKind::AllowFeatureSuppression:
|
||||
llvm_unreachable("cannot serialize attribute");
|
||||
|
||||
#define SIMPLE_DECL_ATTR(_, CLASS, ...) \
|
||||
@@ -2769,20 +2770,6 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
return;
|
||||
}
|
||||
|
||||
case DeclAttrKind::AllowFeatureSuppression: {
|
||||
auto *theAttr = cast<AllowFeatureSuppressionAttr>(DA);
|
||||
auto abbrCode =
|
||||
S.DeclTypeAbbrCodes[AllowFeatureSuppressionDeclAttrLayout::Code];
|
||||
|
||||
SmallVector<IdentifierID> ids;
|
||||
for (auto id : theAttr->getSuppressedFeatures())
|
||||
ids.push_back(S.addUniquedStringRef(id.str()));
|
||||
|
||||
AllowFeatureSuppressionDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode, theAttr->isImplicit(), ids);
|
||||
return;
|
||||
}
|
||||
|
||||
case DeclAttrKind::SPIAccessControl: {
|
||||
auto theAttr = cast<SPIAccessControlAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[SPIAccessControlDeclAttrLayout::Code];
|
||||
|
||||
Reference in New Issue
Block a user