[llvm] bd9e31e - [DWARFLinker] Avoid repeated hash lookups (NFC) (#128825)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 00:55:26 PST 2025
Author: Kazu Hirata
Date: 2025-02-26T00:55:23-08:00
New Revision: bd9e31ef1ea3b53122ca84d0e9e6dcd5901a2012
URL: https://github.com/llvm/llvm-project/commit/bd9e31ef1ea3b53122ca84d0e9e6dcd5901a2012
DIFF: https://github.com/llvm/llvm-project/commit/bd9e31ef1ea3b53122ca84d0e9e6dcd5901a2012.diff
LOG: [DWARFLinker] Avoid repeated hash lookups (NFC) (#128825)
Added:
Modified:
llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
index 6d9e3319db7e5..23e618adeaeb4 100644
--- a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
+++ b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp
@@ -891,10 +891,9 @@ void DWARFLinkerImpl::printStatistic() {
CU->tryGetSectionDescriptor(DebugSectionKind::DebugInfo))
AllDebugInfoSectionsSize += (*DebugInfo)->getContents().size();
- SizeByObject[Context->InputDWARFFile.FileName].Input =
- Context->OriginalDebugInfoSize;
- SizeByObject[Context->InputDWARFFile.FileName].Output =
- AllDebugInfoSectionsSize;
+ auto &Size = SizeByObject[Context->InputDWARFFile.FileName];
+ Size.Input = Context->OriginalDebugInfoSize;
+ Size.Output = AllDebugInfoSectionsSize;
}
// Create a vector sorted in descending order by output size.
More information about the llvm-commits
mailing list