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/protobuf | |
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/protobuf')
-rw-r--r-- | backends/protobuf/protobuf.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/protobuf/protobuf.cc b/backends/protobuf/protobuf.cc index 549fc73ae..fff110bb0 100644 --- a/backends/protobuf/protobuf.cc +++ b/backends/protobuf/protobuf.cc @@ -336,6 +336,7 @@ struct ProtobufPass : 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()) { |