Skip to content

Commit aaecb8f

Browse files
committed
[llvm-objdump] Delete redundant check
llvm-svn: 359102
1 parent 93a47a6 commit aaecb8f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,9 +1485,7 @@ void printDynamicRelocations(const ObjectFile *Obj) {
14851485

14861486
outs() << "DYNAMIC RELOCATION RECORDS\n";
14871487
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)
14911489
for (const RelocationRef &Reloc : Section.relocations()) {
14921490
uint64_t Address = Reloc.getOffset();
14931491
SmallString<32> RelocName;
@@ -1497,7 +1495,6 @@ void printDynamicRelocations(const ObjectFile *Obj) {
14971495
outs() << format(Fmt.data(), Address) << " " << RelocName << " "
14981496
<< ValueStr << "\n";
14991497
}
1500-
}
15011498
}
15021499

15031500
// Returns true if we need to show LMA column when dumping section headers. We

0 commit comments

Comments
 (0)