summaryrefslogtreecommitdiff
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2022-10-31 14:50:04 -0700
committerAlex Langford <apl@fb.com>2022-11-02 10:45:56 -0700
commit13cd39017de07a116c8901904fd4cf7aa290a47c (patch)
treee008c7667ae2d2ccb2e8e09cad9603a925ba4d0f /lldb/source/Core/Module.cpp
parentc061892fcdbdfe46884c54a7a7bfe6df54d1df12 (diff)
[lldb] Add information on type systems to statistics dump command
Context: I plan on using this change primarily downstream in the apple fork of llvm to track swift module loading time. Reviewed By: clayborg, tschuett Differential Revision: https://reviews.llvm.org/D137191
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index d5b4621880dc..20bd02f101fc 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -369,6 +369,11 @@ Module::GetTypeSystemForLanguage(LanguageType language) {
return m_type_system_map.GetTypeSystemForLanguage(language, this, true);
}
+void Module::ForEachTypeSystem(
+ llvm::function_ref<bool(TypeSystem *)> callback) {
+ m_type_system_map.ForEach(callback);
+}
+
void Module::ParseAllDebugSymbols() {
std::lock_guard<std::recursive_mutex> guard(m_mutex);
size_t num_comp_units = GetNumCompileUnits();