Remove `IdString::id_string()`.

This was needed for the short time when `ID()` could return a value of `StaticIdString`.
That is no longer a problem.
This commit is contained in:
Robert O'Callahan 2025-12-22 01:57:30 +00:00
parent 46cb05c471
commit 48cdb499f2
2 changed files with 1 additions and 3 deletions

View File

@ -241,8 +241,6 @@ struct RTLIL::IdString
*this = id; *this = id;
} }
constexpr inline IdString id_string() const { return *this; }
inline const char *c_str() const { inline const char *c_str() const {
if (index_ >= 0) if (index_ >= 0)
return global_id_storage_.at(index_).buf; return global_id_storage_.at(index_).buf;

View File

@ -77,7 +77,7 @@ struct ExampleDtPass : public Pass
auto enqueue = [&](DriveSpec const &spec) { auto enqueue = [&](DriveSpec const &spec) {
int index = queue(spec); int index = queue(spec);
if (index == GetSize(graph_nodes)) if (index == GetSize(graph_nodes))
graph_nodes.emplace_back(compute_graph.add(ID($pending).id_string(), index).index()); graph_nodes.emplace_back(compute_graph.add(ID($pending), index).index());
//if (index >= GetSize(graph_nodes)) //if (index >= GetSize(graph_nodes))
return compute_graph[graph_nodes[index]]; return compute_graph[graph_nodes[index]];
}; };