Home | History | Annotate | Download | only in llvm-ld

Lines Matching defs:args

144 static void PrintCommand(const std::vector<const char*> &args) {

145 std::vector<const char*>::const_iterator I = args.begin(), E = args.end();
267 std::vector<const char*> args;
268 args.push_back(llc.c_str());
271 args.push_back("-x86-asm-syntax=att");
272 args.push_back("-o");
273 args.push_back(OutputFilename.c_str());
274 args.push_back(InputFilename.c_str());
275 args.push_back(0);
279 PrintCommand(args);
282 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg);
291 std::vector<const char*> args;
292 args.push_back(llc.c_str());
293 args.push_back("-march=c");
294 args.push_back("-o");
295 args.push_back(OutputFile.c_str());
296 args.push_back(InputFile.c_str());
297 args.push_back(0);
301 PrintCommand(args);
304 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg);
353 std::vector<std::string> args;
354 args.push_back(gcc.c_str());
355 args.push_back("-fno-strict-aliasing");
356 args.push_back("-O3");
357 args.push_back("-o");
358 args.push_back(OutputFilename);
359 args.push_back(InputFilename);
363 args.push_back("-L" + LibPaths[index]);
366 args.push_back("-F" + FrameworkPaths[index]);
371 args.push_back(XLinker[index]);
377 args.push_back("-l" + LinkItems[index].first);
379 args.push_back(LinkItems[index].first);
384 args.push_back("-framework");
385 args.push_back(Frameworks[index]);
388 // Now that "args" owns all the std::strings for the arguments, call the c_str
391 std::vector<const char *> Args;
392 for (unsigned i = 0, e = args.size(); i != e; ++i)
393 Args.push_back(args[i].c_str());
394 Args.push_back(0);
398 PrintCommand(Args);
403 gcc, &Args[0], const_cast<const char **>(clean_env), 0, 0, 0, &ErrMsg);
630 const char* args[4];
631 args[0] = I->c_str();
632 args[1] = BitcodeOutputFilename.c_str();
633 args[2] = tmp_output.c_str();
634 args[3] = 0;
635 if (0 == sys::Program::ExecuteAndWait(prog, args, 0,0,0,0, &ErrMsg)) {