3
0
Fork 0
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:
Alberto Gonzalez 2020-04-21 07:51:29 +00:00
parent 36bb201dd9
commit 97fd304cbe
No known key found for this signature in database
GPG key ID: 8395A8BA109708B2

View file

@ -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));
} }
} }