@@ -362,8 +362,7 @@ static void getSectionsAndSymbols(MachOObjectFile *MachOObj,
362
362
Symbols.push_back (Symbol);
363
363
}
364
364
365
- for (const SectionRef &Section : MachOObj->sections ())
366
- Sections.push_back (Section);
365
+ append_range (Sections, MachOObj->sections ());
367
366
368
367
bool BaseSegmentAddressSet = false ;
369
368
for (const auto &Command : MachOObj->load_commands ()) {
@@ -6115,8 +6114,7 @@ static void printObjc2_64bit_MetaData(MachOObjectFile *O, bool verbose) {
6115
6114
CreateSymbolAddressMap (O, &AddrMap);
6116
6115
6117
6116
std::vector<SectionRef> Sections;
6118
- for (const SectionRef &Section : O->sections ())
6119
- Sections.push_back (Section);
6117
+ append_range (Sections, O->sections ());
6120
6118
6121
6119
struct DisassembleInfo info (O, &AddrMap, &Sections, verbose);
6122
6120
@@ -6197,8 +6195,7 @@ static void printObjc2_32bit_MetaData(MachOObjectFile *O, bool verbose) {
6197
6195
CreateSymbolAddressMap (O, &AddrMap);
6198
6196
6199
6197
std::vector<SectionRef> Sections;
6200
- for (const SectionRef &Section : O->sections ())
6201
- Sections.push_back (Section);
6198
+ append_range (Sections, O->sections ());
6202
6199
6203
6200
struct DisassembleInfo info (O, &AddrMap, &Sections, verbose);
6204
6201
@@ -6292,8 +6289,7 @@ static bool printObjc1_32bit_MetaData(MachOObjectFile *O, bool verbose) {
6292
6289
CreateSymbolAddressMap (O, &AddrMap);
6293
6290
6294
6291
std::vector<SectionRef> Sections;
6295
- for (const SectionRef &Section : O->sections ())
6296
- Sections.push_back (Section);
6292
+ append_range (Sections, O->sections ());
6297
6293
6298
6294
struct DisassembleInfo info (O, &AddrMap, &Sections, verbose);
6299
6295
@@ -6450,8 +6446,7 @@ static void DumpProtocolSection(MachOObjectFile *O, const char *sect,
6450
6446
CreateSymbolAddressMap (O, &AddrMap);
6451
6447
6452
6448
std::vector<SectionRef> Sections;
6453
- for (const SectionRef &Section : O->sections ())
6454
- Sections.push_back (Section);
6449
+ append_range (Sections, O->sections ());
6455
6450
6456
6451
struct DisassembleInfo info (O, &AddrMap, &Sections, true );
6457
6452
0 commit comments