mirror of https://github.com/YosysHQ/yosys.git
add hash method to scopeindex cursor
This commit is contained in:
parent
b66897e9b9
commit
2a744b4b82
|
@ -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