Lines Matching refs:args

81 static bool ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args,  in ExecGraphViewer()  argument
84 assert(args.back() == nullptr); in ExecGraphViewer()
86 if (sys::ExecuteAndWait(ExecPath, args.data(), nullptr, nullptr, 0, 0, in ExecGraphViewer()
94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); in ExecGraphViewer()
145 std::vector<const char *> args; in DisplayGraph() local
146 args.push_back(ViewerPath.c_str()); in DisplayGraph()
148 args.push_back("-W"); in DisplayGraph()
149 args.push_back(Filename.c_str()); in DisplayGraph()
150 args.push_back(nullptr); in DisplayGraph()
152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
157 std::vector<const char *> args; in DisplayGraph() local
158 args.push_back(ViewerPath.c_str()); in DisplayGraph()
159 args.push_back(Filename.c_str()); in DisplayGraph()
160 args.push_back(nullptr); in DisplayGraph()
162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
168 std::vector<const char *> args; in DisplayGraph() local
169 args.push_back(ViewerPath.c_str()); in DisplayGraph()
170 args.push_back(Filename.c_str()); in DisplayGraph()
171 args.push_back(nullptr); in DisplayGraph()
174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
179 std::vector<const char *> args; in DisplayGraph() local
180 args.push_back(ViewerPath.c_str()); in DisplayGraph()
181 args.push_back(Filename.c_str()); in DisplayGraph()
183 args.push_back("-f"); in DisplayGraph()
184 args.push_back(getProgramName(program)); in DisplayGraph()
186 args.push_back(nullptr); in DisplayGraph()
189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
222 std::vector<const char *> args; in DisplayGraph() local
223 args.push_back(GeneratorPath.c_str()); in DisplayGraph()
225 args.push_back("-Tpdf"); in DisplayGraph()
227 args.push_back("-Tps"); in DisplayGraph()
228 args.push_back("-Nfontname=Courier"); in DisplayGraph()
229 args.push_back("-Gsize=7.5,10"); in DisplayGraph()
230 args.push_back(Filename.c_str()); in DisplayGraph()
231 args.push_back("-o"); in DisplayGraph()
232 args.push_back(OutputFilename.c_str()); in DisplayGraph()
233 args.push_back(nullptr); in DisplayGraph()
237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
244 args.clear(); in DisplayGraph()
245 args.push_back(ViewerPath.c_str()); in DisplayGraph()
248 args.push_back("-W"); in DisplayGraph()
249 args.push_back(OutputFilename.c_str()); in DisplayGraph()
253 args.push_back(OutputFilename.c_str()); in DisplayGraph()
256 args.push_back("--spartan"); in DisplayGraph()
257 args.push_back(OutputFilename.c_str()); in DisplayGraph()
260 args.push_back("/S"); in DisplayGraph()
261 args.push_back("/C"); in DisplayGraph()
264 args.push_back(StartArg.c_str()); in DisplayGraph()
269 args.push_back(nullptr); in DisplayGraph()
272 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
277 std::vector<const char *> args; in DisplayGraph() local
278 args.push_back(ViewerPath.c_str()); in DisplayGraph()
279 args.push_back(Filename.c_str()); in DisplayGraph()
280 args.push_back(nullptr); in DisplayGraph()
287 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()