aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/connwrappers.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-26 14:32:50 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-26 15:58:23 +0200
commitb7dda723022ad00c6c0089be888eab319953faa8 (patch)
tree4fe12ce120f1809891dc4cbd862bbcdab0e90fcc /passes/cmds/connwrappers.cc
parentcd6574ecf652901573cbc6b89e1a59dd383ec496 (diff)
downloadyosys-b7dda723022ad00c6c0089be888eab319953faa8.tar.gz
yosys-b7dda723022ad00c6c0089be888eab319953faa8.tar.bz2
yosys-b7dda723022ad00c6c0089be888eab319953faa8.zip
Changed users of cell->connections_ to the new API (sed command)
git grep -l 'connections_' | xargs sed -i -r -e ' s/(->|\.)connections_\["([^"]*)"\] = (.*);/\1set("\2", \3);/g; s/(->|\.)connections_\["([^"]*)"\]/\1get("\2")/g; s/(->|\.)connections_.at\("([^"]*)"\)/\1get("\2")/g; s/(->|\.)connections_.push_back/\1connect/g; s/(->|\.)connections_/\1connections()/g;'
Diffstat (limited to 'passes/cmds/connwrappers.cc')
-rw-r--r--passes/cmds/connwrappers.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/cmds/connwrappers.cc b/passes/cmds/connwrappers.cc
index 87ed3d856..d7560ab1a 100644
--- a/passes/cmds/connwrappers.cc
+++ b/passes/cmds/connwrappers.cc
@@ -74,7 +74,7 @@ struct ConnwrappersWorker
if (!decl_celltypes.count(cell->type))
continue;
- for (auto &conn : cell->connections_)
+ for (auto &conn : cell->connections())
{
std::pair<std::string, std::string> key(cell->type, conn.first);
@@ -109,7 +109,7 @@ struct ConnwrappersWorker
if (!design->selected(module, cell))
continue;
- for (auto &conn : cell->connections_)
+ for (auto &conn : cell->connections())
{
std::vector<RTLIL::SigBit> sigbits = sigmap(conn.second).to_sigbit_vector();
RTLIL::SigSpec old_sig;