techmap: Replace pseudo-private member usage with the range accessor function and...
authorAlberto Gonzalez <boqwxp@airmail.cc>
Tue, 21 Apr 2020 07:51:29 +0000 (07:51 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 14 May 2020 20:06:55 +0000 (20:06 +0000)
passes/techmap/techmap.cc

index 8a8756757889196b910fbd884cda0a842e44f083..0b88e5910e3e98c90881ab5d0965a60029334340 100644 (file)
@@ -398,7 +398,7 @@ struct TechmapWorker
 
                        vector<IdString> 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<RTLIL::SigSpec&>(conn.second), module);
+                                       port_signal_map.apply(const_cast<RTLIL::SigSpec&>(conn.second));
                                }
                        }