@@ -53,19 +53,26 @@ class DWARFDebugInfoEntry {
5353
5454 using Recurse = DWARFBaseDIE::Recurse;
5555
56- // Get all attribute values for a given DIE, including following any
57- // specification or abstract origin attributes and including those in the
58- // results.
59- //
60- // When following specifications/abstract origins, the attributes
61- // on the referring DIE are guaranteed to be visited before the attributes of
62- // the referenced DIE.
63- //
64- // \param[in]
65- // \param[in]
66- //
67- // \returns output may have duplicate entries
68- DWARFAttributes GetAttributes (DWARFUnit *cu,
56+ // / Get all attribute values for a given DIE, including following any
57+ // / specification or abstract origin attributes and including those in the
58+ // / results.
59+ // /
60+ // / When following specifications/abstract origins, the attributes
61+ // / on the referring DIE are guaranteed to be visited before the attributes of
62+ // / the referenced DIE.
63+ // /
64+ // / \param[in] cu DWARFUnit that this entry belongs to.
65+ // /
66+ // / \param[in] recurse If set to \c Recurse::yes, will include attributes
67+ // / on DIEs referenced via \c DW_AT_specification and \c DW_AT_abstract_origin
68+ // / (including across multiple levels of indirection).
69+ // /
70+ // / \returns DWARFAttributes that include all attributes found on this DIE
71+ // / (and possibly referenced DIEs). Attributes may appear multiple times
72+ // / (e.g., if a declaration and definition both specify the same attribute).
73+ // / On failure, the returned DWARFAttributes will be empty.
74+ // /
75+ DWARFAttributes GetAttributes (const DWARFUnit *cu,
6976 Recurse recurse = Recurse::yes) const ;
7077
7178 dw_offset_t GetAttributeValue (const DWARFUnit *cu, const dw_attr_t attr,
@@ -187,12 +194,6 @@ class DWARFDebugInfoEntry {
187194 // / A copy of the DW_TAG value so we don't have to go through the compile
188195 // / unit abbrev table
189196 dw_tag_t m_tag = llvm::dwarf::DW_TAG_null;
190-
191- private:
192- // Helper for the public \ref DWARFDebugInfoEntry::GetAttributes API.
193- bool GetAttributes (DWARFUnit const *cu, llvm::SmallVector<DWARFDIE> &worklist,
194- llvm::SmallSet<DWARFDebugInfoEntry const *, 3 > &seen,
195- DWARFAttributes &attributes) const ;
196197};
197198} // namespace dwarf
198199} // namespace lldb_private::plugin
0 commit comments