From 8d04ca7d22e375fbe075dee1f189669046ee8906 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 20 Jul 2014 15:16:10 +0200 Subject: Added call_on_selection() and call_on_module() API --- passes/techmap/techmap.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'passes/techmap/techmap.cc') diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index cb36c9e1f..3ceff279b 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; -- cgit v1.2.3