From: Alberto Gonzalez Date: Tue, 21 Apr 2020 07:51:29 +0000 (+0000) Subject: techmap: Replace pseudo-private member usage with the range accessor function and... X-Git-Tag: working-ls180~517^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97fd304cbec4b760bb2ea454668c4957ddb99624;p=yosys.git techmap: Replace pseudo-private member usage with the range accessor function and some naughty `const_cast<>()`s. --- diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index 8a8756757..0b88e5910 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -398,7 +398,7 @@ struct TechmapWorker vector autopurge_ports; - for (auto &conn : c->connections_) + for (auto &conn : c->connections()) { bool autopurge = false; if (!autopurge_tpl_bits.empty()) { @@ -413,8 +413,8 @@ struct TechmapWorker if (autopurge) { autopurge_ports.push_back(conn.first); } else { - apply_prefix(cell->name, conn.second, module); - port_signal_map.apply(conn.second); + apply_prefix(cell->name, const_cast(conn.second), module); + port_signal_map.apply(const_cast(conn.second)); } }