diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-03-22 16:07:58 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-03-22 16:07:58 +0000 |
| commit | 4c2ef9a02be0562c48143b28bd239e8c42df6ce0 (patch) | |
| tree | 3617a3833724a8bd5b59e066e3f221d4774168b5 /lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp | |
| parent | 8d23c289d2df145096097c45852079d07f6700cc (diff) | |
| download | bcm5719-llvm-4c2ef9a02be0562c48143b28bd239e8c42df6ce0.tar.gz bcm5719-llvm-4c2ef9a02be0562c48143b28bd239e8c42df6ce0.zip | |
Revert "Move the rest of the sections over to DWARFContext."
This reverts commit r356682 because it breaks the DWO flavours of some
tests:
lldb-Suite :: lang/c/const_variables/TestConstVariables.py
lldb-Suite :: lang/c/local_variables/TestLocalVariables.py
lldb-Suite :: lang/c/vla/TestVLA.py
llvm-svn: 356773
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp index 1fbe817dfd2..d8a44ccacb9 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp @@ -14,13 +14,6 @@ using namespace lldb; using namespace lldb_private; static const DWARFDataExtractor * -GetPointerOrNull(const llvm::Optional<DWARFDataExtractor> &extractor) { - if (!extractor.hasValue()) - return nullptr; - return extractor.getPointer(); -} - -static const DWARFDataExtractor * LoadOrGetSection(Module &module, SectionType section_type, llvm::Optional<DWARFDataExtractor> &extractor) { if (extractor.hasValue()) @@ -48,61 +41,3 @@ const DWARFDataExtractor *DWARFContext::getOrLoadArangesData() { return LoadOrGetSection(m_module, eSectionTypeDWARFDebugAranges, m_data_debug_aranges); } - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugLineData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugLine, - m_data_debug_line); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugLineStrData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugLineStr, - m_data_debug_line_str); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugMacroData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugMacro, - m_data_debug_macro); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugLocData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugLoc, - m_data_debug_loc); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugLoclistData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugLocLists, - m_data_debug_loclists); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugRangesData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugRanges, - m_data_debug_ranges); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugRnglistsData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugRngLists, - m_data_debug_rnglists); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugFrameData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugFrame, - m_data_debug_frame); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadDebugTypesData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFDebugTypes, - m_data_debug_types); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadGnuDebugAltlinkData() { - return LoadOrGetSection(m_module, eSectionTypeDWARFGNUDebugAltLink, - m_data_gnu_debug_altlink); -} - -const DWARFDataExtractor *DWARFContext::getOrLoadBestDebugLocData() { - const DWARFDataExtractor *loc = getOrLoadDebugLocData(); - if (loc) - return loc; - - return getOrLoadDebugLoclistData(); -} |

