diff options
Diffstat (limited to 'common/idstring.h')
-rw-r--r-- | common/idstring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/idstring.h b/common/idstring.h index c3ccbc6b..aba40ae6 100644 --- a/common/idstring.h +++ b/common/idstring.h @@ -56,6 +56,8 @@ struct IdString bool operator!=(const IdString &other) const { return index != other.index; } bool empty() const { return index == 0; } + + unsigned int hash() const { return index; } }; NEXTPNR_NAMESPACE_END |