Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 707df0a

Browse files
committed
Add DIERef::operator==
This was needed for the Rust plugin
1 parent 8bbb72a commit 707df0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)