[Lldb-commits] [lldb] r361361 - DWARFDebugInfoEntry: remove unused variable
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed May 22 02:09:44 PDT 2019
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();
More information about the lldb-commits
mailing list