mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-05 16:40:53 +00:00
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:
parent
46cb05c471
commit
48cdb499f2
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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]];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue