summaryrefslogtreecommitdiff
path: root/passes/techmap/extract.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-29 16:06:27 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-29 16:35:13 +0200
commit03c96f9ce7120adf1c9bab93485a3b4bf6493ae9 (patch)
treec59b7586ba36ebc0dc1576337c882b44db5f8dc5 /passes/techmap/extract.cc
parent397b00252dc0c4af725614bd12fc299147ba8efa (diff)
Added "techmap -map %{design-name}"
Diffstat (limited to 'passes/techmap/extract.cc')
-rw-r--r--passes/techmap/extract.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/techmap/extract.cc b/passes/techmap/extract.cc
index 9c5fa7f7..19d32334 100644
--- a/passes/techmap/extract.cc
+++ b/passes/techmap/extract.cc
@@ -603,9 +603,9 @@ struct ExtractPass : public Pass {
delete map;
log_cmd_error("Can't saved design `%s'.\n", filename.c_str()+1);
}
- for (auto &it : saved_designs.at(filename.substr(1))->modules_)
- if (!map->modules_.count(it.first))
- map->modules_[it.first] = it.second->clone();
+ for (auto mod : saved_designs.at(filename.substr(1))->modules())
+ if (!map->has(mod->name))
+ map->add(mod->clone());
}
else
{