Merge pull request #4805 from YosysHQ/hash_scopeindex

add hash method to scopeindex cursor
This commit is contained in:
Miodrag Milanović 2024-12-06 11:48:55 +01:00 committed by GitHub
commit 4a755f53a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ public:
return !(*this == other);
}
int hash() const {
return mkhash(scope_name.hash(), hash_ptr_ops::hash(target));
}
bool valid() const {
return target != nullptr;
}