aboutsummaryrefslogtreecommitdiffstats
path: root/backends/protobuf
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/protobuf
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/protobuf')
-rw-r--r--backends/protobuf/protobuf.cc1
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()) {