Skip to content

Commit bd9e31e

Browse files
[DWARFLinker] Avoid repeated hash lookups (NFC) (#128825)
1 parent b8d1f3d commit bd9e31e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,10 +891,9 @@ void DWARFLinkerImpl::printStatistic() {
891891
CU->tryGetSectionDescriptor(DebugSectionKind::DebugInfo))
892892
AllDebugInfoSectionsSize += (*DebugInfo)->getContents().size();
893893

894-
SizeByObject[Context->InputDWARFFile.FileName].Input =
895-
Context->OriginalDebugInfoSize;
896-
SizeByObject[Context->InputDWARFFile.FileName].Output =
897-
AllDebugInfoSectionsSize;
894+
auto &Size = SizeByObject[Context->InputDWARFFile.FileName];
895+
Size.Input = Context->OriginalDebugInfoSize;
896+
Size.Output = AllDebugInfoSectionsSize;
898897
}
899898

900899
// Create a vector sorted in descending order by output size.

0 commit comments

Comments
 (0)