File tree Expand file tree Collapse file tree 3 files changed +1
-69
lines changed Expand file tree Collapse file tree 3 files changed +1
-69
lines changed Original file line number Diff line number Diff line change @@ -5584,36 +5584,6 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
5584
5584
break ;
5585
5585
}
5586
5586
5587
- case decls_block::Initializes_DECL_ATTR: {
5588
- ArrayRef<uint64_t > rawPropertyIDs;
5589
- serialization::decls_block::InitializesDeclAttrLayout::
5590
- readRecord (scratch, rawPropertyIDs);
5591
-
5592
- SmallVector<Identifier, 4 > properties;
5593
- for (auto rawID : rawPropertyIDs) {
5594
- properties.push_back (MF.getIdentifier (rawID));
5595
- }
5596
-
5597
- Attr = InitializesAttr::create (ctx, SourceLoc (), SourceRange (),
5598
- properties);
5599
- break ;
5600
- }
5601
-
5602
- case decls_block::Accesses_DECL_ATTR: {
5603
- ArrayRef<uint64_t > rawPropertyIDs;
5604
- serialization::decls_block::AccessesDeclAttrLayout::
5605
- readRecord (scratch, rawPropertyIDs);
5606
-
5607
- SmallVector<Identifier, 4 > properties;
5608
- for (auto rawID : rawPropertyIDs) {
5609
- properties.push_back (MF.getIdentifier (rawID));
5610
- }
5611
-
5612
- Attr = AccessesAttr::create (ctx, SourceLoc (), SourceRange (),
5613
- properties);
5614
- break ;
5615
- }
5616
-
5617
5587
case decls_block::StorageRestrictions_DECL_ATTR: {
5618
5588
unsigned numInitializesProperties;
5619
5589
ArrayRef<uint64_t > rawPropertyIDs;
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
58
58
// / describe what change you made. The content of this comment isn't important;
59
59
// / it just ensures a conflict if two people change the module format.
60
60
// / Don't worry about adhering to the 80-column limit for this line.
61
- const uint16_t SWIFTMODULE_VERSION_MINOR = 802 ; // added tuple_pack_extract
61
+ const uint16_t SWIFTMODULE_VERSION_MINOR = 803 ; // removed initializes and accesses attributes
62
62
63
63
// / A standard hash seed used for all string hashes in a serialized module.
64
64
// /
@@ -2233,16 +2233,6 @@ namespace decls_block {
2233
2233
BCArray<IdentifierIDField> // target function pieces, spi groups, type erased params
2234
2234
>;
2235
2235
2236
- using InitializesDeclAttrLayout = BCRecordLayout<
2237
- Initializes_DECL_ATTR,
2238
- BCArray<IdentifierIDField> // initialized properties
2239
- >;
2240
-
2241
- using AccessesDeclAttrLayout = BCRecordLayout<
2242
- Accesses_DECL_ATTR,
2243
- BCArray<IdentifierIDField> // initialized properties
2244
- >;
2245
-
2246
2236
using StorageRestrictionsDeclAttrLayout = BCRecordLayout<
2247
2237
StorageRestrictions_DECL_ATTR,
2248
2238
BCVBR<16 >, // num "initializes" properties
Original file line number Diff line number Diff line change @@ -2923,34 +2923,6 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
2923
2923
return ;
2924
2924
}
2925
2925
2926
- case DAK_Initializes: {
2927
- auto abbrCode = S.DeclTypeAbbrCodes [InitializesDeclAttrLayout::Code];
2928
- auto attr = cast<InitializesAttr>(DA);
2929
-
2930
- SmallVector<IdentifierID, 4 > properties;
2931
- for (auto identifier : attr->getProperties ()) {
2932
- properties.push_back (S.addDeclBaseNameRef (identifier));
2933
- }
2934
-
2935
- InitializesDeclAttrLayout::emitRecord (
2936
- S.Out , S.ScratchRecord , abbrCode, properties);
2937
- return ;
2938
- }
2939
-
2940
- case DAK_Accesses: {
2941
- auto abbrCode = S.DeclTypeAbbrCodes [AccessesDeclAttrLayout::Code];
2942
- auto attr = cast<InitializesAttr>(DA);
2943
-
2944
- SmallVector<IdentifierID, 4 > properties;
2945
- for (auto identifier : attr->getProperties ()) {
2946
- properties.push_back (S.addDeclBaseNameRef (identifier));
2947
- }
2948
-
2949
- AccessesDeclAttrLayout::emitRecord (
2950
- S.Out , S.ScratchRecord , abbrCode, properties);
2951
- return ;
2952
- }
2953
-
2954
2926
case DAK_StorageRestrictions: {
2955
2927
auto abbrCode = S.DeclTypeAbbrCodes [StorageRestrictionsDeclAttrLayout::Code];
2956
2928
auto attr = cast<StorageRestrictionsAttr>(DA);
You can’t perform that action at this time.
0 commit comments