aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-04-30 17:00:34 +0200
committerGitHub <noreply@github.com>2019-04-30 17:00:34 +0200
commitd9d50b0b0c4da21c9bf2b0f1499297368b808491 (patch)
tree6a926310738ae81a1b98f74066e79f423310b33b /kernel/yosys.cc
parent727eec04c53c6863b18883a5afd7cee1cb52a157 (diff)
parent58e991a0eb36f0a5a23170e6818338efa7445a44 (diff)
downloadyosys-d9d50b0b0c4da21c9bf2b0f1499297368b808491.tar.gz
yosys-d9d50b0b0c4da21c9bf2b0f1499297368b808491.tar.bz2
yosys-d9d50b0b0c4da21c9bf2b0f1499297368b808491.zip
Merge branch 'master' into eddie/refactor_synth_xilinx
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index a12355f1d..20d972150 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -482,6 +482,20 @@ void remove_directory(std::string dirname)
#endif
}
+std::string escape_filename_spaces(const std::string& filename)
+{
+ std::string out;
+ out.reserve(filename.size());
+ for (auto c : filename)
+ {
+ if (c == ' ')
+ out += "\\ ";
+ else
+ out.push_back(c);
+ }
+ return out;
+}
+
int GetSize(RTLIL::Wire *wire)
{
return wire->width;