From: Pavel Labath Date: Wed, 12 Feb 2020 11:47:43 +0000 (+0100) Subject: [lldb/DWARF] Use DWARFDebugInfoEntry * in ElaboratingDIEIterator X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=034c2c6771d318f962bbf001f00ee11e542e1180;p=platform%2Fupstream%2Fllvm.git [lldb/DWARF] Use DWARFDebugInfoEntry * in ElaboratingDIEIterator This is simpler, faster, and sufficient to uniquely idenify a DIE. --- diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp index 5d8c522..8e995e6 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp @@ -32,7 +32,7 @@ class ElaboratingDIEIterator // Container sizes are optimized for the case of following DW_AT_specification // and DW_AT_abstract_origin just once. llvm::SmallVector m_worklist; - llvm::SmallSet m_seen; + llvm::SmallSet m_seen; void Next() { assert(!m_worklist.empty() && "Incrementing end iterator?"); @@ -44,7 +44,7 @@ class ElaboratingDIEIterator // And add back any items that elaborate it. for (dw_attr_t attr : {DW_AT_specification, DW_AT_abstract_origin}) { if (DWARFDIE d = die.GetReferencedDIE(attr)) - if (m_seen.insert(die.GetID()).second) + if (m_seen.insert(die.GetDIE()).second) m_worklist.push_back(d); } }