From a68ccda203aad2cc4fd386d5e893237f09fa1ffb Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 17 Nov 2021 18:07:28 -0800 Subject: Revert "[NFC] Refactor symbol table parsing." This reverts commit 951b107eedab1829f18049443f03339dbb0db165. Buildbots were failing, there is a deadlock in /Users/gclayton/Documents/src/llvm/clean/llvm-project/lldb/test/Shell/SymbolFile/DWARF/DW_AT_range-DW_FORM_sec_offset.s when ELF files try to relocate things. --- lldb/source/Symbol/ObjectFile.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lldb/source/Symbol/ObjectFile.cpp') diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index dec42c4a7fca..101af01341a2 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -715,20 +715,3 @@ void llvm::format_provider::format( break; } } - - -Symtab *ObjectFile::GetSymtab() { - ModuleSP module_sp(GetModule()); - if (module_sp) { - std::lock_guard guard(module_sp->GetMutex()); - if (!m_symtab_up) { - ElapsedTime elapsed(module_sp->GetSymtabParseTime()); - m_symtab_up = std::make_unique(this); - std::lock_guard symtab_guard( - m_symtab_up->GetMutex()); - ParseSymtab(*m_symtab_up); - m_symtab_up->Finalize(); - } - } - return m_symtab_up.get(); -} -- cgit v1.2.3