aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/tools/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-20 18:06:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-20 18:06:09 +0000
commitacac075be8bce18f411c310a849e242ec445dfc3 (patch)
tree5f57769acef830514eb4eb67dfa628e32b17cbf5 /contrib/llvm/tools/lldb/source/Core/Module.cpp
parent10dc89a5a71075c0fecf74e6e43d206d7be795e9 (diff)
parentef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (diff)
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Core/Module.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Core/Module.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/llvm/tools/lldb/source/Core/Module.cpp b/contrib/llvm/tools/lldb/source/Core/Module.cpp
index aaae4700db35..8f80be45f1b0 100644
--- a/contrib/llvm/tools/lldb/source/Core/Module.cpp
+++ b/contrib/llvm/tools/lldb/source/Core/Module.cpp
@@ -129,43 +129,6 @@ Module *Module::GetAllocatedModuleAtIndex(size_t idx) {
return nullptr;
}
-#if 0
-// These functions help us to determine if modules are still loaded, yet don't require that
-// you have a command interpreter and can easily be called from an external debugger.
-namespace lldb {
-
- void
- ClearModuleInfo (void)
- {
- const bool mandatory = true;
- ModuleList::RemoveOrphanSharedModules(mandatory);
- }
-
- void
- DumpModuleInfo (void)
- {
- Mutex::Locker locker (Module::GetAllocationModuleCollectionMutex());
- ModuleCollection &modules = GetModuleCollection();
- const size_t count = modules.size();
- printf ("%s: %" PRIu64 " modules:\n", LLVM_PRETTY_FUNCTION, (uint64_t)count);
- for (size_t i = 0; i < count; ++i)
- {
-
- StreamString strm;
- Module *module = modules[i];
- const bool in_shared_module_list = ModuleList::ModuleIsInCache (module);
- module->GetDescription(&strm, eDescriptionLevelFull);
- printf ("%p: shared = %i, ref_count = %3u, module = %s\n",
- module,
- in_shared_module_list,
- (uint32_t)module->use_count(),
- strm.GetString().c_str());
- }
- }
-}
-
-#endif
-
Module::Module(const ModuleSpec &module_spec)
: m_object_offset(0), m_file_has_changed(false),
m_first_file_changed_log(false) {