[Lldb-commits] [lldb] r318579 - [Module] Throw away some more commented code. NFCI.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 17 16:52:29 PST 2017
Author: davide
Date: Fri Nov 17 16:52:29 2017
New Revision: 318579
URL: http://llvm.org/viewvc/llvm-project?rev=318579&view=rev
Log:
[Module] Throw away some more commented code. NFCI.
Modified:
lldb/trunk/source/Core/Module.cpp
Modified: lldb/trunk/source/Core/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Module.cpp?rev=318579&r1=318578&r2=318579&view=diff
==============================================================================
--- lldb/trunk/source/Core/Module.cpp (original)
+++ lldb/trunk/source/Core/Module.cpp Fri Nov 17 16:52:29 2017
@@ -129,43 +129,6 @@ Module *Module::GetAllocatedModuleAtInde
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) {
More information about the lldb-commits
mailing list