diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-02 22:34:01 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-02 23:43:20 +0000 |
commit | f3e86bb32a745d300df38173b41347263696ed4b (patch) | |
tree | e753f16aeff50945fd99a660ed64b0e230394ff1 | |
parent | 68d747f76769ce6e517cc72263ccc89ef5dff43f (diff) | |
download | yosys-f3e86bb32a745d300df38173b41347263696ed4b.tar.gz yosys-f3e86bb32a745d300df38173b41347263696ed4b.tar.bz2 yosys-f3e86bb32a745d300df38173b41347263696ed4b.zip |
techmap: simplify.
`rewrite_filename` is already called in `Frontend::extra_args`.
-rw-r--r-- | passes/techmap/techmap.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index fc24c33b0..0d7c10d0c 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -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)); } } |