summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-23 15:32:00 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-23 15:32:00 +0200
commitc642dd0b3eb1390b6c1acd39c1f19797da27b190 (patch)
treece7c9646134bec2f0d073735e88a12f02ea762c8
parent58367cd87a5d2bac1de81512f60939c080b3b9ef (diff)
Only call proc_share_dirname() in techmap when necessary
-rw-r--r--passes/techmap/techmap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index beacdfa6..660f1b38 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -829,14 +829,13 @@ struct TechmapPass : public Pass {
int max_iter = -1;
size_t argidx;
- std::string proc_share_path = proc_share_dirname();
for (argidx = 1; argidx < args.size(); argidx++) {
if (args[argidx] == "-map" && argidx+1 < args.size()) {
map_files.push_back(args[++argidx]);
continue;
}
if (args[argidx] == "-share_map" && argidx+1 < args.size()) {
- map_files.push_back(proc_share_path + args[++argidx]);
+ map_files.push_back(proc_share_dirname() + args[++argidx]);
continue;
}
if (args[argidx] == "-max_iter" && argidx+1 < args.size()) {