summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp24
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h1
2 files changed, 0 insertions, 25 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
index 493b3af6ecd..b1b8e36e655 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
@@ -103,30 +103,6 @@ DWARFCompileUnit::Extract(const DataExtractor &debug_info, lldb::offset_t *offse
}
-dw_offset_t
-DWARFCompileUnit::Extract(lldb::offset_t offset, const DataExtractor& debug_info_data, const DWARFAbbreviationDeclarationSet* abbrevs)
-{
- Clear();
-
- m_offset = offset;
-
- if (debug_info_data.ValidOffset(offset))
- {
- m_length = debug_info_data.GetU32(&offset);
- m_version = debug_info_data.GetU16(&offset);
- bool abbrevs_OK = debug_info_data.GetU32(&offset) == abbrevs->GetOffset();
- m_abbrevs = abbrevs;
- m_addr_size = debug_info_data.GetU8 (&offset);
-
- bool version_OK = SymbolFileDWARF::SupportedVersion(m_version);
- bool addr_size_OK = ((m_addr_size == 4) || (m_addr_size == 8));
-
- if (version_OK && addr_size_OK && abbrevs_OK && debug_info_data.ValidOffset(offset))
- return offset;
- }
- return DW_INVALID_OFFSET;
-}
-
void
DWARFCompileUnit::ClearDIEs(bool keep_compile_unit_die)
{
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
index 9fee0a2d223..c4116a85efe 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
@@ -30,7 +30,6 @@ public:
DWARFCompileUnit(SymbolFileDWARF* dwarf2Data);
bool Extract(const lldb_private::DataExtractor &debug_info, lldb::offset_t *offset_ptr);
- dw_offset_t Extract(lldb::offset_t offset, const lldb_private::DataExtractor& debug_info_data, const DWARFAbbreviationDeclarationSet* abbrevs);
size_t ExtractDIEsIfNeeded (bool cu_die_only);
bool LookupAddress(
const dw_addr_t address,
OpenPOWER on IntegriCloud