File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1485,9 +1485,7 @@ void printDynamicRelocations(const ObjectFile *Obj) {
1485
1485
1486
1486
outs () << " DYNAMIC RELOCATION RECORDS\n " ;
1487
1487
StringRef Fmt = Obj->getBytesInAddress () > 4 ? " %016" PRIx64 : " %08" PRIx64;
1488
- for (const SectionRef &Section : DynRelSec) {
1489
- if (Section.relocation_begin () == Section.relocation_end ())
1490
- continue ;
1488
+ for (const SectionRef &Section : DynRelSec)
1491
1489
for (const RelocationRef &Reloc : Section.relocations ()) {
1492
1490
uint64_t Address = Reloc.getOffset ();
1493
1491
SmallString<32 > RelocName;
@@ -1497,7 +1495,6 @@ void printDynamicRelocations(const ObjectFile *Obj) {
1497
1495
outs () << format (Fmt.data (), Address) << " " << RelocName << " "
1498
1496
<< ValueStr << " \n " ;
1499
1497
}
1500
- }
1501
1498
}
1502
1499
1503
1500
// Returns true if we need to show LMA column when dumping section headers. We
You can’t perform that action at this time.
0 commit comments