Skip to content

Commit 846d055

Browse files
committed
remove absolute first
1 parent 96dd3c3 commit 846d055

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,6 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23552355
// N.B. Except for XCOFF, we don't walk the relocations in the
23562356
// relocatable case yet.
23572357
std::vector<const SectionSymbolsTy *> TargetSectionSymbols;
2358-
bool AbsoluteFirst = false;
23592358
if (!Obj.isRelocatableObject()) {
23602359
auto It = llvm::partition_point(
23612360
SectionAddresses,
@@ -2369,7 +2368,6 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23692368
if (It->first != TargetSecAddr) {
23702369
if (!FoundSymbols) {
23712370
TargetSecAddr = It->first;
2372-
AbsoluteFirst = true;
23732371
} else {
23742372
break;
23752373
}
@@ -2381,10 +2379,7 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23812379
} else {
23822380
TargetSectionSymbols.push_back(&Symbols);
23832381
}
2384-
if (AbsoluteFirst)
2385-
TargetSectionSymbols.insert(TargetSectionSymbols.begin(), &AbsoluteSymbols);
2386-
else
2387-
TargetSectionSymbols.push_back(&AbsoluteSymbols);
2382+
TargetSectionSymbols.push_back(&AbsoluteSymbols);
23882383

23892384
// Find the last symbol in the first candidate section whose
23902385
// offset is less than or equal to the target. If there are no

0 commit comments

Comments
 (0)