File tree Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -3814,8 +3814,6 @@ class RecordDecl : public TagDecl {
3814
3814
// / nullptr is returned if no named data member exists.
3815
3815
const FieldDecl *findFirstNamedDataMember () const ;
3816
3816
3817
- void reorderFields (ArrayRef<Decl *> Decls) const ;
3818
-
3819
3817
private:
3820
3818
// / Deserialize just the fields.
3821
3819
void LoadFieldsFromExternalStorage () const ;
Original file line number Diff line number Diff line change @@ -4148,14 +4148,6 @@ RecordDecl::field_iterator RecordDecl::field_begin() const {
4148
4148
return field_iterator (decl_iterator (FirstDecl));
4149
4149
}
4150
4150
4151
- void RecordDecl::reorderFields (ArrayRef<Decl *> Decls) const {
4152
- Decl *NewFirst, *NewLast;
4153
- std::tie (NewFirst, NewLast) =
4154
- BuildDeclChain (Decls, false );
4155
- FirstDecl = NewFirst;
4156
- LastDecl = NewLast;
4157
- }
4158
-
4159
4151
// / completeDefinition - Notes that the definition of this type is now
4160
4152
// / complete.
4161
4153
void RecordDecl::completeDefinition () {
Original file line number Diff line number Diff line change @@ -2989,16 +2989,6 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
2989
2989
2990
2990
bool ShouldBeRandomized = D->getAttr <RandomizeLayoutAttr>() != nullptr ;
2991
2991
if (ShouldBeRandomized) {
2992
- // A staging area to easily reorder the fields
2993
- SmallVector<Decl *, 64 > fields;
2994
- for (auto f : D->fields ()) {
2995
- fields.push_back (f);
2996
- }
2997
-
2998
- fields = rearrange (*this , fields);
2999
-
3000
- // This will rebuild the Decl chain of fields
3001
- D->reorderFields (fields);
3002
2992
}
3003
2993
3004
2994
if (isMsLayout (*this )) {
You can’t perform that action at this time.
0 commit comments