@@ -437,7 +437,7 @@ class ObjcCategoryMerger {
437
437
void eraseMergedCategories ();
438
438
439
439
void generateCatListForNonErasedCategories (
440
- std::map <ConcatInputSection *, std::set<uint64_t >>
440
+ MapVector <ConcatInputSection *, std::set<uint64_t >>
441
441
catListToErasedOffsets);
442
442
void collectSectionWriteInfoFromIsec (const InputSection *isec,
443
443
InfoWriteSection &catWriteInfo);
@@ -491,7 +491,7 @@ class ObjcCategoryMerger {
491
491
InfoCategoryWriter infoCategoryWriter;
492
492
std::vector<ConcatInputSection *> &allInputSections;
493
493
// Map of base class Symbol to list of InfoInputCategory's for it
494
- DenseMap <const Symbol *, std::vector<InfoInputCategory>> categoryMap;
494
+ MapVector <const Symbol *, std::vector<InfoInputCategory>> categoryMap;
495
495
// Set for tracking InputSection erased via eraseISec
496
496
DenseSet<InputSection *> erasedIsecs;
497
497
@@ -1104,7 +1104,7 @@ void ObjcCategoryMerger::collectAndValidateCategoriesData() {
1104
1104
// (not erased). For these not erased categories, we generate new __objc_catlist
1105
1105
// entries since the parent __objc_catlist entry will be erased
1106
1106
void ObjcCategoryMerger::generateCatListForNonErasedCategories (
1107
- const std::map <ConcatInputSection *, std::set<uint64_t >>
1107
+ const MapVector <ConcatInputSection *, std::set<uint64_t >>
1108
1108
catListToErasedOffsets) {
1109
1109
1110
1110
// Go through all offsets of all __objc_catlist's that we process and if there
@@ -1171,7 +1171,7 @@ void ObjcCategoryMerger::eraseISec(ConcatInputSection *isec) {
1171
1171
// them.
1172
1172
void ObjcCategoryMerger::eraseMergedCategories () {
1173
1173
// Map of InputSection to a set of offsets of the categories that were merged
1174
- std::map <ConcatInputSection *, std::set<uint64_t >> catListToErasedOffsets;
1174
+ MapVector <ConcatInputSection *, std::set<uint64_t >> catListToErasedOffsets;
1175
1175
1176
1176
for (auto &mapEntry : categoryMap) {
1177
1177
for (InfoInputCategory &catInfo : mapEntry.second ) {
0 commit comments