mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 22:33:41 +00:00
Use std::hash for RTLIL hashing
This commit is contained in:
parent
1dcf75d175
commit
2508d45f0b
1 changed files with 2 additions and 1 deletions
|
@ -2536,7 +2536,8 @@ std::string RTLIL::Module::rtlil_dump() {
|
||||||
|
|
||||||
// Returns a hash of the RTLIL dump
|
// Returns a hash of the RTLIL dump
|
||||||
unsigned int RTLIL::Module::rtlil_hash() {
|
unsigned int RTLIL::Module::rtlil_hash() {
|
||||||
return hash_ops<std::string>::hash(rtlil_dump());
|
std::hash<std::string> hasher;
|
||||||
|
return hasher(rtlil_dump());
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTLIL::Module::swap_names(RTLIL::Cell *c1, RTLIL::Cell *c2)
|
void RTLIL::Module::swap_names(RTLIL::Cell *c1, RTLIL::Cell *c2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue