summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-05-22 09:09:44 +0000
committerPavel Labath <pavel@labath.sk>2019-05-22 09:09:44 +0000
commit7b0b4b49d35bb2c6b4d92eac98e05e8bcff7b02d (patch)
tree680559a1fa890b7c6696ecc822062fe065827400
parent80233daeaa0b778585c32b921679eb9d22e23ceb (diff)
downloadbcm5719-llvm-7b0b4b49d35bb2c6b4d92eac98e05e8bcff7b02d.tar.gz
bcm5719-llvm-7b0b4b49d35bb2c6b4d92eac98e05e8bcff7b02d.zip
DWARFDebugInfoEntry: remove unused variable
llvm-svn: 361361
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index 610b28127e4..029339aa9da 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -725,13 +725,10 @@ void DWARFDebugInfoEntry::DumpAttribute(
size_t DWARFDebugInfoEntry::GetAttributes(
const DWARFUnit *cu, DWARFFormValue::FixedFormSizes fixed_form_sizes,
DWARFAttributes &attributes, uint32_t curr_depth) const {
- SymbolFileDWARF *dwarf2Data = nullptr;
const DWARFAbbreviationDeclaration *abbrevDecl = nullptr;
lldb::offset_t offset = 0;
- if (cu) {
- dwarf2Data = cu->GetSymbolFileDWARF();
+ if (cu)
abbrevDecl = GetAbbreviationDeclarationPtr(cu, offset);
- }
if (abbrevDecl) {
const DWARFDataExtractor &debug_info_data = cu->GetData();
OpenPOWER on IntegriCloud