mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Use only module->addCell() and module->remove() to create and delete cells
This commit is contained in:
parent
5826670009
commit
2bec47a404
35 changed files with 259 additions and 582 deletions
|
@ -271,10 +271,9 @@ struct OptShareWorker
|
|||
}
|
||||
}
|
||||
log(" Removing %s cell `%s' from module `%s'.\n", cell->type.c_str(), cell->name.c_str(), module->name.c_str());
|
||||
module->cells.erase(cell->name);
|
||||
module->remove(cell);
|
||||
OPT_DID_SOMETHING = true;
|
||||
total_count++;
|
||||
delete cell;
|
||||
} else {
|
||||
sharemap[cell] = cell;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue