From 97fd304cbec4b760bb2ea454668c4957ddb99624 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Tue, 21 Apr 2020 07:51:29 +0000 Subject: [PATCH] techmap: Replace pseudo-private member usage with the range accessor function and some naughty `const_cast<>()`s. --- passes/techmap/techmap.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } } -- 2.30.2