diff options
| author | Clifford Wolf <clifford@clifford.at> | 2014-07-20 15:16:10 +0200 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2014-07-20 15:33:06 +0200 | 
| commit | 8d04ca7d22e375fbe075dee1f189669046ee8906 (patch) | |
| tree | c6c33cff1313f961891dc5b58a89a27615656996 /passes/techmap/techmap.cc | |
| parent | 2e358bd6678aba687908fe4a359c82aa5dff110d (diff) | |
| download | yosys-8d04ca7d22e375fbe075dee1f189669046ee8906.tar.gz yosys-8d04ca7d22e375fbe075dee1f189669046ee8906.tar.bz2 yosys-8d04ca7d22e375fbe075dee1f189669046ee8906.zip  | |
Added call_on_selection() and call_on_module() API
Diffstat (limited to 'passes/techmap/techmap.cc')
| -rw-r--r-- | passes/techmap/techmap.cc | 10 | 
1 files changed, 1 insertions, 9 deletions
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;  | 
