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
1 changed files with 2 additions and 1 deletions

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)