mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
techmap: Replace pseudo-private member usage with the range accessor function and some naughty const_cast<>()
s.
This commit is contained in:
parent
36bb201dd9
commit
97fd304cbe
|
@ -398,7 +398,7 @@ struct TechmapWorker
|
||||||
|
|
||||||
vector<IdString> autopurge_ports;
|
vector<IdString> autopurge_ports;
|
||||||
|
|
||||||
for (auto &conn : c->connections_)
|
for (auto &conn : c->connections())
|
||||||
{
|
{
|
||||||
bool autopurge = false;
|
bool autopurge = false;
|
||||||
if (!autopurge_tpl_bits.empty()) {
|
if (!autopurge_tpl_bits.empty()) {
|
||||||
|
@ -413,8 +413,8 @@ struct TechmapWorker
|
||||||
if (autopurge) {
|
if (autopurge) {
|
||||||
autopurge_ports.push_back(conn.first);
|
autopurge_ports.push_back(conn.first);
|
||||||
} else {
|
} else {
|
||||||
apply_prefix(cell->name, conn.second, module);
|
apply_prefix(cell->name, const_cast<RTLIL::SigSpec&>(conn.second), module);
|
||||||
port_signal_map.apply(conn.second);
|
port_signal_map.apply(const_cast<RTLIL::SigSpec&>(conn.second));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue