Author: labath Date: Wed May 22 02:09:44 2019 New Revision: 361361 URL: http://llvm.org/viewvc/llvm-project?rev=361361&view=rev Log: DWARFDebugInfoEntry: remove unused variable
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp?rev=361361&r1=361360&r2=361361&view=diff ============================================================================== --- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp (original) +++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp Wed May 22 02:09:44 2019 @@ -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(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits