Skip to content

Commit 3b342c4

Browse files
tromeynikic
authored andcommitted
Add DIERef::operator==
This was needed for the Rust plugin
1 parent dd19fb7 commit 3b342c4

File tree

1 file changed

+2
-0
lines changed
  • lldb/source/Plugins/SymbolFile/DWARF

1 file changed

+2
-0
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DIERef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class DIERef {
4444

4545
dw_offset_t die_offset() const { return m_die_offset; }
4646

47+
bool operator==(const DIERef &ref) const { return die_offset == ref.die_offset; }
48+
4749
private:
4850
uint32_t m_dwo_num : 30;
4951
uint32_t m_dwo_num_valid : 1;

0 commit comments

Comments
 (0)