mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 02:10:24 +00:00
Remove log_str()
functions and convert their log_signal()
users to return std::string
This is a small but easy step towards removing the `log_id_cache`. See issue #5210.
This commit is contained in:
parent
7b0c1fe491
commit
ec3f384dca
6 changed files with 28 additions and 39 deletions
|
@ -675,16 +675,6 @@ const char *log_id(const RTLIL::IdString &str)
|
|||
return p+1;
|
||||
}
|
||||
|
||||
const char *log_str(const char *str)
|
||||
{
|
||||
log_id_cache.push_back(strdup(str));
|
||||
return log_id_cache.back();
|
||||
}
|
||||
|
||||
const char *log_str(std::string const &str) {
|
||||
return log_str(str.c_str());
|
||||
}
|
||||
|
||||
void log_module(RTLIL::Module *module, std::string indent)
|
||||
{
|
||||
std::stringstream buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue