techmap: simplify.
authorwhitequark <whitequark@whitequark.org>
Tue, 2 Jun 2020 22:34:01 +0000 (22:34 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 2 Jun 2020 23:43:20 +0000 (23:43 +0000)
`rewrite_filename` is already called in `Frontend::extra_args`.

passes/techmap/techmap.cc

index fc24c33b0fa3af0bc2ad5029879c6d5f6a1f5bea..0d7c10d0c86de67f8cefbb6521b8bb1573802d7b 100644 (file)
@@ -1293,13 +1293,7 @@ struct TechmapPass : public Pass {
                                                if (!map->module(mod->name))
                                                        map->add(mod->clone());
                                } else {
-                                       std::ifstream f;
-                                       rewrite_filename(fn);
-                                       f.open(fn.c_str());
-                                       yosys_input_files.insert(fn);
-                                       if (f.fail())
-                                               log_cmd_error("Can't open map file `%s'\n", fn.c_str());
-                                       Frontend::frontend_call(map, &f, fn, (fn.size() > 3 && fn.compare(fn.size()-3, std::string::npos, ".il") == 0 ? "ilang" : verilog_frontend));
+                                       Frontend::frontend_call(map, nullptr, fn, (fn.size() > 3 && fn.compare(fn.size()-3, std::string::npos, ".il") == 0 ? "ilang" : verilog_frontend));
                                }
                }