Only call proc_share_dirname() in techmap when necessary
authorClifford Wolf <clifford@clifford.at>
Sat, 23 Aug 2014 13:32:00 +0000 (15:32 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 23 Aug 2014 13:32:00 +0000 (15:32 +0200)
passes/techmap/techmap.cc

index beacdfa6f73bc76e9c5561d44a1863a46a5a7751..660f1b38893fbe41459f620f8bb5406546a3e14a 100644 (file)
@@ -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()) {