Skip to content

Commit 47d964e

Browse files
committed
Reduce map lookup of section symbols
1 parent 3e57664 commit 47d964e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,8 +2402,9 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
24022402
break;
24032403
TargetSecAddr = It->first;
24042404
}
2405-
TargetSectionSymbols.push_back(&AllSymbols[It->second]);
2406-
if (!AllSymbols[It->second].empty())
2405+
auto *SectionSymbols = &AllSymbols[It->second];
2406+
TargetSectionSymbols.push_back(SectionSymbols);
2407+
if (!SectionSymbols->empty())
24072408
FoundSymbols = true;
24082409
}
24092410
} else {

0 commit comments

Comments
 (0)