aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-04-08 12:14:34 +0200
committerClifford Wolf <clifford@clifford.at>2015-04-08 12:14:34 +0200
commit21a1cc1b60f0c646dcc46c89440fc1a2cf606743 (patch)
treece642af5e328a4947be37e23315c5389fe8b9fc8 /passes/techmap
parentaa0ab975b956e3b37c4d861fcf067475a28fd491 (diff)
downloadyosys-21a1cc1b60f0c646dcc46c89440fc1a2cf606743.tar.gz
yosys-21a1cc1b60f0c646dcc46c89440fc1a2cf606743.tar.bz2
yosys-21a1cc1b60f0c646dcc46c89440fc1a2cf606743.zip
Added support for "file names with blanks"
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/extract.cc2
-rw-r--r--passes/techmap/techmap.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/extract.cc b/passes/techmap/extract.cc
index ff99040e1..27689663e 100644
--- a/passes/techmap/extract.cc
+++ b/passes/techmap/extract.cc
@@ -607,6 +607,7 @@ struct ExtractPass : public Pass {
else
{
std::ifstream f;
+ rewrite_filename(filename);
f.open(filename.c_str());
if (f.fail()) {
delete map;
@@ -746,6 +747,7 @@ struct ExtractPass : public Pass {
}
std::ofstream f;
+ rewrite_filename(mine_outfile);
f.open(mine_outfile.c_str(), std::ofstream::trunc);
if (f.fail())
log_error("Can't open output file `%s'.\n", mine_outfile.c_str());
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index bc86571b8..aea7ef1be 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -951,10 +951,7 @@ struct TechmapPass : public Pass {
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++) {
if (args[argidx] == "-map" && argidx+1 < args.size()) {
- if (args[argidx+1].substr(0, 2) == "+/")
- map_files.push_back(proc_share_dirname() + args[++argidx].substr(2));
- else
- map_files.push_back(args[++argidx]);
+ map_files.push_back(args[++argidx]);
continue;
}
if (args[argidx] == "-max_iter" && argidx+1 < args.size()) {
@@ -1005,6 +1002,7 @@ struct TechmapPass : public Pass {
map->add(mod->clone());
} else {
std::ifstream f;
+ rewrite_filename(fn);
f.open(fn.c_str());
if (f.fail())
log_cmd_error("Can't open map file `%s'\n", fn.c_str());