diff options
| author | Greg Clayton <gclayton@fb.com> | 2021-11-17 18:07:28 -0800 |
|---|---|---|
| committer | Greg Clayton <gclayton@fb.com> | 2021-11-17 18:07:28 -0800 |
| commit | a68ccda203aad2cc4fd386d5e893237f09fa1ffb (patch) | |
| tree | 3a2bc1d7b73efebd4edfa80c714dd9f05d464a4c /lldb/source/Symbol/ObjectFile.cpp | |
| parent | 92eaad2dd7adb5ee92f397cef85ab11f2612294e (diff) | |
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.
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
| -rw-r--r-- | lldb/source/Symbol/ObjectFile.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
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<ObjectFile::Strata>::format( break; } } - - -Symtab *ObjectFile::GetSymtab() { - ModuleSP module_sp(GetModule()); - if (module_sp) { - std::lock_guard<std::recursive_mutex> guard(module_sp->GetMutex()); - if (!m_symtab_up) { - ElapsedTime elapsed(module_sp->GetSymtabParseTime()); - m_symtab_up = std::make_unique<Symtab>(this); - std::lock_guard<std::recursive_mutex> symtab_guard( - m_symtab_up->GetMutex()); - ParseSymtab(*m_symtab_up); - m_symtab_up->Finalize(); - } - } - return m_symtab_up.get(); -} |
