mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4805 from YosysHQ/hash_scopeindex
add hash method to scopeindex cursor
This commit is contained in:
commit
4a755f53a5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue