mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-15 15:25:28 +00:00
use the new isPublic() in a few places
This commit is contained in:
parent
4af04be0b7
commit
3238190797
13 changed files with 25 additions and 25 deletions
|
@ -290,11 +290,11 @@ struct RenamePass : public Pass {
|
|||
dict<RTLIL::Cell *, IdString> new_cell_names;
|
||||
|
||||
for (auto wire : module->selected_wires())
|
||||
if (wire->name[0] == '\\' && wire->port_id == 0)
|
||||
if (wire->name.isPublic() && wire->port_id == 0)
|
||||
new_wire_names[wire] = NEW_ID;
|
||||
|
||||
for (auto cell : module->selected_cells())
|
||||
if (cell->name[0] == '\\')
|
||||
if (cell->name.isPublic())
|
||||
new_cell_names[cell] = NEW_ID;
|
||||
|
||||
for (auto &it : new_wire_names)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue