Lines Matching refs:CCArgs
159 const std::vector<std::string> &CCArgs,
169 const std::vector<std::string> &CCArgs,
255 const std::vector<std::string> &CCArgs = std::vector<std::string>(),
304 const std::vector<std::string> &CCArgs,
313 const std::vector<std::string> &CCArgs,
497 std::vector<std::string> CCArgs(ArgsForCC);
498 llvm::append_range(CCArgs, SharedLibs);
502 OutputFile, CCArgs, Timeout, MemoryLimit);
510 const std::vector<std::string> *CCArgs,
519 CC *cc = CC::create(Argv0, Message, CCBinary, CCArgs);
547 const std::vector<std::string> &CCArgs = std::vector<std::string>(),
557 const std::vector<std::string> &CCArgs,
629 std::vector<StringRef> CCArgs;
631 CCArgs.push_back(CCPath);
634 CCArgs.push_back("-m32");
639 CCArgs.push_back(*I);
643 CCArgs.push_back("-x");
645 CCArgs.push_back("c");
646 CCArgs.push_back("-fno-strict-aliasing");
648 CCArgs.push_back("assembler");
653 if (TargetTriple.isOSDarwin() && !IsARMArchitecture(CCArgs))
654 CCArgs.push_back("-force_cpusubtype_ALL");
658 CCArgs.push_back(ProgramFile); // Specify the input filename.
660 CCArgs.push_back("-x");
661 CCArgs.push_back("none");
662 CCArgs.push_back("-o");
671 CCArgs.push_back(OutputBinary); // Output to the right file...
678 CCArgs.push_back(ArgsForCC[i]);
680 CCArgs.push_back("-lm"); // Hard-code the math library...
681 CCArgs.push_back("-O2"); // Optimize the program a bit...
683 CCArgs.push_back("-mcpu=v9");
688 for (unsigned i = 0, e = CCArgs.size(); i != e; ++i) errs()
689 << " " << CCArgs[i];
691 if (RunProgramWithTimeout(CCPath, CCArgs, "", "", ""))
692 return ProcessFailure(CCPath, CCArgs);
777 std::vector<StringRef> CCArgs;
779 CCArgs.push_back(CCPath);
782 CCArgs.push_back("-m32");
787 CCArgs.push_back(*I);
791 CCArgs.push_back("-x");
792 CCArgs.push_back(fileType == AsmFile ? "assembler" : "c");
794 CCArgs.push_back("-fno-strict-aliasing");
795 CCArgs.push_back(InputFile); // Specify the input filename.
796 CCArgs.push_back("-x");
797 CCArgs.push_back("none");
799 CCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc
805 CCArgs.push_back("-single_module");
806 CCArgs.push_back("-dynamiclib"); // `-dynamiclib' for MacOS X/PowerPC
807 CCArgs.push_back("-undefined");
808 CCArgs.push_back("dynamic_lookup");
810 CCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others
813 CCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC
816 CCArgs.push_back("-mcpu=v9");
818 CCArgs.push_back("-o");
819 CCArgs.push_back(OutputFile); // Output to the right filename.
820 CCArgs.push_back("-O2"); // Optimize the program a bit.
827 CCArgs.push_back(ArgsForCC[i]);
832 for (unsigned i = 0, e = CCArgs.size(); i != e; ++i) errs()
833 << " " << CCArgs[i];
835 if (RunProgramWithTimeout(CCPath, CCArgs, "", "", ""))
836 return ProcessFailure(CCPath, CCArgs);