summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-03-19 20:08:56 +0000
committerZachary Turner <zturner@google.com>2019-03-19 20:08:56 +0000
commit611d1f98c587b85b4eb60559ff774d73a34b102b (patch)
tree36548a43b79f32d93e4d231a010dede78bd2b79a /lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
parent6271606969e276f48c6965f31a46acf54e476e65 (diff)
downloadbcm5719-llvm-611d1f98c587b85b4eb60559ff774d73a34b102b.tar.gz
bcm5719-llvm-611d1f98c587b85b4eb60559ff774d73a34b102b.zip
Delete more dead code.
All of this is code that is unreferenced. Removing as much of this as possible makes it more easy to determine what functionality is missing and/or shared between LLVM and LLDB's DWARF interfaces. llvm-svn: 356509
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
index bf22ceb0817..f00b97c7b52 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
@@ -61,7 +61,7 @@ DWARFDebugAranges::extract(const DWARFDataExtractor &debug_aranges_data) {
const uint32_t num_descriptors = set.NumDescriptors();
if (num_descriptors > 0) {
- const dw_offset_t cu_offset = set.GetCompileUnitDIEOffset();
+ const dw_offset_t cu_offset = set.GetHeader().cu_offset;
for (uint32_t i = 0; i < num_descriptors; ++i) {
const DWARFDebugArangeSet::Descriptor &descriptor =
@@ -71,26 +71,8 @@ DWARFDebugAranges::extract(const DWARFDataExtractor &debug_aranges_data) {
}
}
set.Clear();
- }
- return llvm::ErrorSuccess();
-}
-
-//----------------------------------------------------------------------
-// Generate
-//----------------------------------------------------------------------
-bool DWARFDebugAranges::Generate(SymbolFileDWARF *dwarf2Data) {
- Clear();
- DWARFDebugInfo *debug_info = dwarf2Data->DebugInfo();
- if (debug_info) {
- uint32_t cu_idx = 0;
- const uint32_t num_compile_units = dwarf2Data->GetNumCompileUnits();
- for (cu_idx = 0; cu_idx < num_compile_units; ++cu_idx) {
- DWARFUnit *cu = debug_info->GetCompileUnitAtIndex(cu_idx);
- if (cu)
- cu->BuildAddressRangeTable(dwarf2Data, this);
}
- }
- return !IsEmpty();
+ return llvm::ErrorSuccess();
}
void DWARFDebugAranges::Dump(Log *log) const {
OpenPOWER on IntegriCloud