3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-10 09:48:06 +00:00

Deprecate RTLIL::id2cstr()

This commit is contained in:
Robert O'Callahan 2025-09-16 23:40:35 +00:00
parent b95549b469
commit a8ff020829
21 changed files with 75 additions and 78 deletions

View file

@ -1484,7 +1484,7 @@ void RTLIL::Module::makeblackbox()
void RTLIL::Module::expand_interfaces(RTLIL::Design *, const dict<RTLIL::IdString, RTLIL::Module *> &)
{
log_error("Class doesn't support expand_interfaces (module: `%s')!\n", id2cstr(name));
log_error("Class doesn't support expand_interfaces (module: `%s')!\n", log_id(name));
}
bool RTLIL::Module::reprocess_if_necessary(RTLIL::Design *)
@ -1496,7 +1496,7 @@ RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, const dict<RTLIL::IdString
{
if (mayfail)
return RTLIL::IdString();
log_error("Module `%s' is used with parameters but is not parametric!\n", id2cstr(name));
log_error("Module `%s' is used with parameters but is not parametric!\n", log_id(name));
}
@ -1504,7 +1504,7 @@ RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, const dict<RTLIL::IdString
{
if (mayfail)
return RTLIL::IdString();
log_error("Module `%s' is used with parameters but is not parametric!\n", id2cstr(name));
log_error("Module `%s' is used with parameters but is not parametric!\n", log_id(name));
}
size_t RTLIL::Module::count_id(const RTLIL::IdString& id)

View file

@ -580,6 +580,7 @@ namespace RTLIL {
return unescape_id(str.str());
}
[[deprecated("Use log_id() instead")]]
static inline const char *id2cstr(const RTLIL::IdString &str) {
return log_id(str);
}