mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 12:23:39 +00:00
hashlib: hash_eat -> hash_into
This commit is contained in:
parent
0a525f38c2
commit
b9b9515bb0
23 changed files with 95 additions and 95 deletions
|
@ -169,7 +169,7 @@ public:
|
|||
return !(*this == other);
|
||||
}
|
||||
|
||||
Hasher hash_acc(Hasher h) const
|
||||
Hasher hash_into(Hasher h) const
|
||||
{
|
||||
h.eat(scope_name);
|
||||
h.eat(target);
|
||||
|
@ -325,7 +325,7 @@ struct ModuleItem {
|
|||
Cell *cell() const { return type == Type::Cell ? static_cast<Cell *>(ptr) : nullptr; }
|
||||
|
||||
bool operator==(const ModuleItem &other) const { return ptr == other.ptr && type == other.type; }
|
||||
Hasher hash_eat(Hasher h) const { h.eat(ptr); return h; }
|
||||
Hasher hash_into(Hasher h) const { h.eat(ptr); return h; }
|
||||
};
|
||||
|
||||
static inline void log_dump_val_worker(typename IdTree<ModuleItem>::Cursor cursor ) { log("%p %s", cursor.target, log_id(cursor.scope_name)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue