diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2019-06-17 14:45:48 -0700 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2019-06-18 14:39:52 -0700 |
commit | 4a18e19fb86f5729ca764d5b0ee338f558f90a43 (patch) | |
tree | 9424a7ed212ae7d1f63497ec7662ec4b426c609b /backends/json | |
parent | 468c41d997477aa6c67a8b97bc4d9dcff185b815 (diff) | |
download | yosys-4a18e19fb86f5729ca764d5b0ee338f558f90a43.tar.gz yosys-4a18e19fb86f5729ca764d5b0ee338f558f90a43.tar.bz2 yosys-4a18e19fb86f5729ca764d5b0ee338f558f90a43.zip |
Support filename rewrite in backends
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'backends/json')
-rw-r--r-- | backends/json/json.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/json/json.cc b/backends/json/json.cc index f5c687981..5022d5da1 100644 --- a/backends/json/json.cc +++ b/backends/json/json.cc @@ -525,6 +525,7 @@ struct JsonPass : public Pass { std::stringstream buf; if (!filename.empty()) { + rewrite_filename(filename); std::ofstream *ff = new std::ofstream; ff->open(filename.c_str(), std::ofstream::trunc); if (ff->fail()) { |