aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectScripting.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-27 08:39:49 -0700
committerGitHub <noreply@github.com>2024-08-27 08:39:49 -0700
commit0359b9a2306566a872cede1fcdaa4edc34e9398e (patch)
treee4e89732f3d5f06ddaf4df4b4fe68db58532ae37 /lldb/source/Commands/CommandObjectScripting.cpp
parent6e44cb3ccb822085cd2f35c63daa60395dda26f2 (diff)
downloadllvm-0359b9a2306566a872cede1fcdaa4edc34e9398e.zip
llvm-0359b9a2306566a872cede1fcdaa4edc34e9398e.tar.gz
llvm-0359b9a2306566a872cede1fcdaa4edc34e9398e.tar.bz2
[LTO] Introduce a helper function collectImportStatistics (NFC) (#106179)
This patch introduces a helper function collectImportStatistics. The new function computes statistics of imports for ComputeCrossModuleImport and dumpImportListForModule with no functional change. The background is as follows. I'm planning to reduce the memory footprint of ThinLTO indexing by changing ImportMapTy, the data structure used for an import list. The new list will be a hash set of tuples (SourceModule, GUID, ImportType) represented in a space efficient manner. That means that obtaining statistics like the number of definitions per source module requires us to go through the entire import list (for a given destination module). Introducing a helper function now makes the callers more independent of the underlying data structures used in ImportMapT.
Diffstat (limited to 'lldb/source/Commands/CommandObjectScripting.cpp')
0 files changed, 0 insertions, 0 deletions