aboutsummaryrefslogtreecommitdiffstats
path: root/common/idstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/idstring.h')
-rw-r--r--common/idstring.h2
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