summaryrefslogtreecommitdiff
path: root/passes/techmap/techmap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/techmap/techmap.cc')
-rw-r--r--passes/techmap/techmap.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index cb36c9e1..3ceff279 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -393,15 +393,7 @@ struct TechmapWorker
tpl->add(data.wire);
std::string cmd_string = data.value.as_const().decode_string();
-
- RTLIL::Selection tpl_mod_sel(false);
- std::string backup_active_module = map->selected_active_module;
- map->selected_active_module = tpl->name;
- tpl_mod_sel.select(tpl);
- map->selection_stack.push_back(tpl_mod_sel);
- Pass::call(map, cmd_string);
- map->selection_stack.pop_back();
- map->selected_active_module = backup_active_module;
+ Pass::call_on_module(map, tpl, cmd_string);
keep_running = true;
break;