3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Use std::hash for RTLIL hashing

This commit is contained in:
Akash Levy 2024-12-19 21:54:57 -08:00
parent 1dcf75d175
commit 2508d45f0b

View file

@ -2536,7 +2536,8 @@ std::string RTLIL::Module::rtlil_dump() {
// Returns a hash of the RTLIL dump
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)