Lines Matching refs:GCCArgs
189 const std::vector<std::string> &GCCArgs,
202 const std::vector<std::string> &GCCArgs, in ExecuteProgram() argument
277 const std::vector<std::string> &GCCArgs = in ExecuteProgram() argument
333 const std::vector<std::string> &GCCArgs,
346 const std::vector<std::string> &GCCArgs, in ExecuteProgram() argument
508 std::vector<std::string> GCCArgs(ArgsForGCC); in ExecuteProgram() local
509 GCCArgs.insert(GCCArgs.end(), SharedLibs.begin(), SharedLibs.end()); in ExecuteProgram()
513 InputFile, OutputFile, Error, GCCArgs, in ExecuteProgram()
523 const std::vector<std::string> *GCCArgs, in createLLC() argument
533 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs); in createLLC()
560 const std::vector<std::string> &GCCArgs =
574 const std::vector<std::string> &GCCArgs, in ExecuteProgram() argument
680 std::vector<std::string> GCCArgs(ArgsForGCC); in ExecuteProgram() local
681 GCCArgs.insert(GCCArgs.end(), SharedLibs.begin(), SharedLibs.end()); in ExecuteProgram()
684 InputFile, OutputFile, Error, GCCArgs, in ExecuteProgram()
694 const std::vector<std::string> *GCCArgs) { in createCBE() argument
704 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs); in createCBE()
738 std::vector<const char*> GCCArgs; in ExecuteProgram() local
740 GCCArgs.push_back(GCCPath.c_str()); in ExecuteProgram()
743 GCCArgs.push_back("-m32"); in ExecuteProgram()
747 GCCArgs.push_back(I->c_str()); in ExecuteProgram()
751 GCCArgs.push_back("-x"); in ExecuteProgram()
753 GCCArgs.push_back("c"); in ExecuteProgram()
754 GCCArgs.push_back("-fno-strict-aliasing"); in ExecuteProgram()
756 GCCArgs.push_back("assembler"); in ExecuteProgram()
761 if (TargetTriple.isOSDarwin() && !IsARMArchitecture(GCCArgs)) in ExecuteProgram()
762 GCCArgs.push_back("-force_cpusubtype_ALL"); in ExecuteProgram()
766 GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename. in ExecuteProgram()
768 GCCArgs.push_back("-x"); in ExecuteProgram()
769 GCCArgs.push_back("none"); in ExecuteProgram()
770 GCCArgs.push_back("-o"); in ExecuteProgram()
777 GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file... in ExecuteProgram()
784 GCCArgs.push_back(ArgsForGCC[i].c_str()); in ExecuteProgram()
786 GCCArgs.push_back("-lm"); // Hard-code the math library... in ExecuteProgram()
787 GCCArgs.push_back("-O2"); // Optimize the program a bit... in ExecuteProgram()
789 GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files in ExecuteProgram()
792 GCCArgs.push_back("-mcpu=v9"); in ExecuteProgram()
793 GCCArgs.push_back(0); // NULL terminator in ExecuteProgram()
797 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i) in ExecuteProgram()
798 errs() << " " << GCCArgs[i]; in ExecuteProgram()
801 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(), in ExecuteProgram()
803 *Error = ProcessFailure(GCCPath, &GCCArgs[0]); in ExecuteProgram()
889 std::vector<const char*> GCCArgs; in MakeSharedObject() local
891 GCCArgs.push_back(GCCPath.c_str()); in MakeSharedObject()
894 GCCArgs.push_back("-m32"); in MakeSharedObject()
898 GCCArgs.push_back(I->c_str()); in MakeSharedObject()
902 GCCArgs.push_back("-x"); in MakeSharedObject()
903 GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c"); in MakeSharedObject()
905 GCCArgs.push_back("-fno-strict-aliasing"); in MakeSharedObject()
906 GCCArgs.push_back(InputFile.c_str()); // Specify the input filename. in MakeSharedObject()
907 GCCArgs.push_back("-x"); in MakeSharedObject()
908 GCCArgs.push_back("none"); in MakeSharedObject()
910 GCCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc in MakeSharedObject()
916 GCCArgs.push_back("-single_module"); in MakeSharedObject()
917 GCCArgs.push_back("-dynamiclib"); // `-dynamiclib' for MacOS X/PowerPC in MakeSharedObject()
918 GCCArgs.push_back("-undefined"); in MakeSharedObject()
919 GCCArgs.push_back("dynamic_lookup"); in MakeSharedObject()
921 GCCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others in MakeSharedObject()
925 GCCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC in MakeSharedObject()
928 GCCArgs.push_back("-mcpu=v9"); in MakeSharedObject()
930 GCCArgs.push_back("-o"); in MakeSharedObject()
931 GCCArgs.push_back(OutputFile.c_str()); // Output to the right filename. in MakeSharedObject()
932 GCCArgs.push_back("-O2"); // Optimize the program a bit. in MakeSharedObject()
941 GCCArgs.push_back(ArgsForGCC[i].c_str()); in MakeSharedObject()
942 GCCArgs.push_back(0); // NULL terminator in MakeSharedObject()
948 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i) in MakeSharedObject()
949 errs() << " " << GCCArgs[i]; in MakeSharedObject()
952 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(), in MakeSharedObject()
954 Error = ProcessFailure(GCCPath, &GCCArgs[0]); in MakeSharedObject()