Skip to content

Commit 7709c2c

Browse files
tromeycuviper
authored andcommitted
Add DIERef::operator==
This was needed for the Rust plugin
1 parent 311809c commit 7709c2c

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
@@ -49,6 +49,8 @@ struct DIERef {
4949
return cu_offset != DW_INVALID_OFFSET || die_offset != DW_INVALID_OFFSET;
5050
}
5151

52+
bool operator==(const DIERef &ref) const { return die_offset == ref.die_offset; }
53+
5254
dw_offset_t cu_offset = DW_INVALID_OFFSET;
5355
dw_offset_t die_offset = DW_INVALID_OFFSET;
5456
};

0 commit comments

Comments
 (0)