diff options
author | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-04-21 07:51:29 +0000 |
---|---|---|
committer | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-05-14 20:06:55 +0000 |
commit | 97fd304cbec4b760bb2ea454668c4957ddb99624 (patch) | |
tree | c61b2481c42580cd027ff37ca1946078e5b132e4 /passes | |
parent | 36bb201dd9572f71c74d0987d8f42b19a6feaa9c (diff) | |
download | yosys-97fd304cbec4b760bb2ea454668c4957ddb99624.tar.gz yosys-97fd304cbec4b760bb2ea454668c4957ddb99624.tar.bz2 yosys-97fd304cbec4b760bb2ea454668c4957ddb99624.zip |
techmap: Replace pseudo-private member usage with the range accessor function and some naughty `const_cast<>()`s.
Diffstat (limited to 'passes')
-rw-r--r-- | passes/techmap/techmap.cc | 6 |
1 files 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<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)); } } |