aboutsummaryrefslogtreecommitdiffstats
path: root/backends/json
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2019-06-17 14:45:48 -0700
committerBen Widawsky <ben@bwidawsk.net>2019-06-18 14:39:52 -0700
commit4a18e19fb86f5729ca764d5b0ee338f558f90a43 (patch)
tree9424a7ed212ae7d1f63497ec7662ec4b426c609b /backends/json
parent468c41d997477aa6c67a8b97bc4d9dcff185b815 (diff)
downloadyosys-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.cc1
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()) {