Lines Matching refs:CmdArgs
92 ArgStringList &CmdArgs, in addDirectoryList() argument
106 CmdArgs.push_back(ArgName); in addDirectoryList()
107 CmdArgs.push_back("."); in addDirectoryList()
109 CmdArgs.push_back(ArgName); in addDirectoryList()
110 CmdArgs.push_back(Args.MakeArgString(Dirs.substr(0, Delim))); in addDirectoryList()
116 CmdArgs.push_back(ArgName); in addDirectoryList()
117 CmdArgs.push_back("."); in addDirectoryList()
119 CmdArgs.push_back(ArgName); in addDirectoryList()
120 CmdArgs.push_back(Args.MakeArgString(Dirs)); in addDirectoryList()
126 ArgStringList &CmdArgs) { in AddLinkerInputs() argument
131 Args.AddAllArgValues(CmdArgs, options::OPT_Zlinker_input); in AddLinkerInputs()
149 CmdArgs.push_back(II.getFilename()); in AddLinkerInputs()
158 TC.AddCXXStdlibLibArgs(Args, CmdArgs); in AddLinkerInputs()
160 TC.AddCCKextLibArgs(Args, CmdArgs); in AddLinkerInputs()
162 A.renderAsInput(Args, CmdArgs); in AddLinkerInputs()
166 addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); in AddLinkerInputs()
185 ArgStringList &CmdArgs, in addProfileRT() argument
200 CmdArgs.push_back(Args.MakeArgString(ProfileRT)); in addProfileRT()
206 ArgStringList &CmdArgs, in AddPreprocessingOptions() argument
213 Args.AddLastArg(CmdArgs, options::OPT_C); in AddPreprocessingOptions()
214 Args.AddLastArg(CmdArgs, options::OPT_CC); in AddPreprocessingOptions()
234 CmdArgs.push_back("-dependency-file"); in AddPreprocessingOptions()
235 CmdArgs.push_back(DepFile); in AddPreprocessingOptions()
255 CmdArgs.push_back("-MT"); in AddPreprocessingOptions()
258 CmdArgs.push_back(Args.MakeArgString(Quoted)); in AddPreprocessingOptions()
263 CmdArgs.push_back("-sys-header-deps"); in AddPreprocessingOptions()
270 CmdArgs.push_back("-MG"); in AddPreprocessingOptions()
273 Args.AddLastArg(CmdArgs, options::OPT_MP); in AddPreprocessingOptions()
283 CmdArgs.push_back("-MT"); in AddPreprocessingOptions()
286 CmdArgs.push_back(Args.MakeArgString(Quoted)); in AddPreprocessingOptions()
290 A->render(Args, CmdArgs); in AddPreprocessingOptions()
345 CmdArgs.push_back("-include-pch"); in AddPreprocessingOptions()
347 CmdArgs.push_back("-include-pth"); in AddPreprocessingOptions()
348 CmdArgs.push_back(Args.MakeArgString(P.str())); in AddPreprocessingOptions()
360 A->render(Args, CmdArgs); in AddPreprocessingOptions()
363 Args.AddAllArgs(CmdArgs, options::OPT_D, options::OPT_U); in AddPreprocessingOptions()
364 Args.AddAllArgs(CmdArgs, options::OPT_I_Group, options::OPT_F, in AddPreprocessingOptions()
373 Args.AddAllArgValues(CmdArgs, options::OPT_Wp_COMMA, in AddPreprocessingOptions()
385 CmdArgs.push_back("-isysroot"); in AddPreprocessingOptions()
386 CmdArgs.push_back(C.getArgs().MakeArgString(sysroot)); in AddPreprocessingOptions()
394 A->render(Args, CmdArgs); in AddPreprocessingOptions()
400 CmdArgs.push_back("-fmodule-cache-path"); in AddPreprocessingOptions()
401 CmdArgs.push_back(Args.MakeArgString(DefaultModuleCache)); in AddPreprocessingOptions()
409 addDirectoryList(Args, CmdArgs, "-I", "CPATH"); in AddPreprocessingOptions()
411 addDirectoryList(Args, CmdArgs, "-c-isystem", "C_INCLUDE_PATH"); in AddPreprocessingOptions()
413 addDirectoryList(Args, CmdArgs, "-cxx-isystem", "CPLUS_INCLUDE_PATH"); in AddPreprocessingOptions()
415 addDirectoryList(Args, CmdArgs, "-objc-isystem", "OBJC_INCLUDE_PATH"); in AddPreprocessingOptions()
417 addDirectoryList(Args, CmdArgs, "-objcxx-isystem", "OBJCPLUS_INCLUDE_PATH"); in AddPreprocessingOptions()
421 getToolChain().AddClangCXXStdlibIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
424 getToolChain().AddClangSystemIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
533 ArgStringList &CmdArgs) { in addFPUArgs() argument
539 CmdArgs.push_back("-target-feature"); in addFPUArgs()
540 CmdArgs.push_back("-vfp2"); in addFPUArgs()
541 CmdArgs.push_back("-target-feature"); in addFPUArgs()
542 CmdArgs.push_back("-vfp3"); in addFPUArgs()
543 CmdArgs.push_back("-target-feature"); in addFPUArgs()
544 CmdArgs.push_back("-neon"); in addFPUArgs()
546 CmdArgs.push_back("-target-feature"); in addFPUArgs()
547 CmdArgs.push_back("+vfp3"); in addFPUArgs()
548 CmdArgs.push_back("-target-feature"); in addFPUArgs()
549 CmdArgs.push_back("+d16"); in addFPUArgs()
550 CmdArgs.push_back("-target-feature"); in addFPUArgs()
551 CmdArgs.push_back("-neon"); in addFPUArgs()
553 CmdArgs.push_back("-target-feature"); in addFPUArgs()
554 CmdArgs.push_back("+vfp2"); in addFPUArgs()
555 CmdArgs.push_back("-target-feature"); in addFPUArgs()
556 CmdArgs.push_back("-neon"); in addFPUArgs()
558 CmdArgs.push_back("-target-feature"); in addFPUArgs()
559 CmdArgs.push_back("+vfp3"); in addFPUArgs()
560 CmdArgs.push_back("-target-feature"); in addFPUArgs()
561 CmdArgs.push_back("-neon"); in addFPUArgs()
563 CmdArgs.push_back("-target-feature"); in addFPUArgs()
564 CmdArgs.push_back("+neon"); in addFPUArgs()
571 ArgStringList &CmdArgs, StringRef CPU) { in addFPMathArgs() argument
576 CmdArgs.push_back("-target-feature"); in addFPMathArgs()
577 CmdArgs.push_back("+neonfp"); in addFPMathArgs()
584 CmdArgs.push_back("-target-feature"); in addFPMathArgs()
585 CmdArgs.push_back("-neonfp"); in addFPMathArgs()
669 ArgStringList &CmdArgs, in AddARMTargetArgs() argument
695 CmdArgs.push_back("-target-abi"); in AddARMTargetArgs()
696 CmdArgs.push_back(ABIName); in AddARMTargetArgs()
699 CmdArgs.push_back("-target-cpu"); in AddARMTargetArgs()
700 CmdArgs.push_back(Args.MakeArgString(getARMTargetCPU(Args, Triple))); in AddARMTargetArgs()
708 CmdArgs.push_back("-msoft-float"); in AddARMTargetArgs()
709 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
710 CmdArgs.push_back("soft"); in AddARMTargetArgs()
713 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
714 CmdArgs.push_back("soft"); in AddARMTargetArgs()
718 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
719 CmdArgs.push_back("hard"); in AddARMTargetArgs()
730 CmdArgs.push_back("-target-feature"); in AddARMTargetArgs()
731 CmdArgs.push_back("+soft-float"); in AddARMTargetArgs()
736 CmdArgs.push_back("-target-feature"); in AddARMTargetArgs()
737 CmdArgs.push_back("+soft-float-abi"); in AddARMTargetArgs()
742 addFPUArgs(D, A, Args, CmdArgs); in AddARMTargetArgs()
746 addFPMathArgs(D, A, Args, CmdArgs, getARMTargetCPU(Args, Triple)); in AddARMTargetArgs()
751 CmdArgs.push_back("-target-feature"); in AddARMTargetArgs()
752 CmdArgs.push_back("-neon"); in AddARMTargetArgs()
757 CmdArgs.push_back("-backend-option"); in AddARMTargetArgs()
758 CmdArgs.push_back("-arm-long-calls"); in AddARMTargetArgs()
760 CmdArgs.push_back("-backend-option"); in AddARMTargetArgs()
761 CmdArgs.push_back("-arm-strict-align"); in AddARMTargetArgs()
764 CmdArgs.push_back("-backend-option"); in AddARMTargetArgs()
765 CmdArgs.push_back("-arm-darwin-use-movt=0"); in AddARMTargetArgs()
773 CmdArgs.push_back("-mno-global-merge"); in AddARMTargetArgs()
777 CmdArgs.push_back("-no-implicit-float"); in AddARMTargetArgs()
864 ArgStringList &CmdArgs, in AddTargetFeature() argument
869 CmdArgs.push_back("-target-feature"); in AddTargetFeature()
871 CmdArgs.push_back(Args.MakeArgString("+" + FeatureName)); in AddTargetFeature()
873 CmdArgs.push_back(Args.MakeArgString("-" + FeatureName)); in AddTargetFeature()
878 ArgStringList &CmdArgs) const { in AddMIPSTargetArgs()
884 CmdArgs.push_back("-target-cpu"); in AddMIPSTargetArgs()
885 CmdArgs.push_back(CPUName.data()); in AddMIPSTargetArgs()
887 CmdArgs.push_back("-target-abi"); in AddMIPSTargetArgs()
888 CmdArgs.push_back(ABIName.data()); in AddMIPSTargetArgs()
894 CmdArgs.push_back("-msoft-float"); in AddMIPSTargetArgs()
895 CmdArgs.push_back("-mfloat-abi"); in AddMIPSTargetArgs()
896 CmdArgs.push_back("soft"); in AddMIPSTargetArgs()
901 CmdArgs.push_back("-target-feature"); in AddMIPSTargetArgs()
902 CmdArgs.push_back("+soft-float"); in AddMIPSTargetArgs()
907 CmdArgs.push_back("-target-feature"); in AddMIPSTargetArgs()
908 CmdArgs.push_back("+single-float"); in AddMIPSTargetArgs()
913 CmdArgs.push_back("-mfloat-abi"); in AddMIPSTargetArgs()
914 CmdArgs.push_back("hard"); in AddMIPSTargetArgs()
917 AddTargetFeature(Args, CmdArgs, in AddMIPSTargetArgs()
920 AddTargetFeature(Args, CmdArgs, in AddMIPSTargetArgs()
923 AddTargetFeature(Args, CmdArgs, in AddMIPSTargetArgs()
929 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
930 CmdArgs.push_back(Args.MakeArgString("-mips-ssection-threshold=" + v)); in AddMIPSTargetArgs()
981 ArgStringList &CmdArgs) const { in AddPPCTargetArgs()
996 CmdArgs.push_back("-target-cpu"); in AddPPCTargetArgs()
997 CmdArgs.push_back(Args.MakeArgString(TargetCPUName.c_str())); in AddPPCTargetArgs()
1002 ArgStringList &CmdArgs) const { in AddSparcTargetArgs()
1006 CmdArgs.push_back("-target-cpu"); in AddSparcTargetArgs()
1007 CmdArgs.push_back(A->getValue(Args)); in AddSparcTargetArgs()
1035 CmdArgs.push_back("-msoft-float"); in AddSparcTargetArgs()
1036 CmdArgs.push_back("-target-feature"); in AddSparcTargetArgs()
1037 CmdArgs.push_back("+soft-float"); in AddSparcTargetArgs()
1040 CmdArgs.push_back("-mhard-float"); in AddSparcTargetArgs()
1045 ArgStringList &CmdArgs) const { in AddX86TargetArgs()
1051 CmdArgs.push_back("-disable-red-zone"); in AddX86TargetArgs()
1056 CmdArgs.push_back("-no-implicit-float"); in AddX86TargetArgs()
1115 CmdArgs.push_back("-target-cpu"); in AddX86TargetArgs()
1116 CmdArgs.push_back(CPUName); in AddX86TargetArgs()
1148 CmdArgs.push_back("-target-feature"); in AddX86TargetArgs()
1149 CmdArgs.push_back(Features[i]); in AddX86TargetArgs()
1194 ArgStringList &CmdArgs) const { in AddHexagonTargetArgs()
1197 CmdArgs.push_back("-target-cpu"); in AddHexagonTargetArgs()
1198 CmdArgs.push_back(Args.MakeArgString("hexagon" + getHexagonTargetCPU(Args))); in AddHexagonTargetArgs()
1199 CmdArgs.push_back("-fno-signed-char"); in AddHexagonTargetArgs()
1200 CmdArgs.push_back("-nobuiltininc"); in AddHexagonTargetArgs()
1203 CmdArgs.push_back("-mqdsp6-compat"); in AddHexagonTargetArgs()
1209 CmdArgs.push_back ("-mllvm"); in AddHexagonTargetArgs()
1210 CmdArgs.push_back(Args.MakeArgString(SmallDataThreshold)); in AddHexagonTargetArgs()
1215 CmdArgs.push_back("-fshort-enums"); in AddHexagonTargetArgs()
1217 CmdArgs.push_back ("-mllvm"); in AddHexagonTargetArgs()
1218 CmdArgs.push_back ("-enable-hexagon-ieee-rnd-near"); in AddHexagonTargetArgs()
1220 CmdArgs.push_back ("-mllvm"); in AddHexagonTargetArgs()
1221 CmdArgs.push_back ("-machine-sink-split=0"); in AddHexagonTargetArgs()
1250 ArgStringList &CmdArgs) { in addExceptionArgs() argument
1292 CmdArgs.push_back("-fobjc-exceptions"); in addExceptionArgs()
1312 CmdArgs.push_back("-fcxx-exceptions"); in addExceptionArgs()
1319 CmdArgs.push_back("-fexceptions"); in addExceptionArgs()
1387 ArgStringList &CmdArgs) { in addAsanRTLinux() argument
1396 CmdArgs.push_back("-u"); in addAsanRTLinux()
1397 CmdArgs.push_back("__asan_preinit"); in addAsanRTLinux()
1398 CmdArgs.push_back("-lasan"); in addAsanRTLinux()
1401 CmdArgs.push_back("-lasan_preload"); in addAsanRTLinux()
1402 CmdArgs.push_back("-ldl"); in addAsanRTLinux()
1411 CmdArgs.push_back(Args.MakeArgString(LibAsan)); in addAsanRTLinux()
1412 CmdArgs.push_back("-lpthread"); in addAsanRTLinux()
1413 CmdArgs.push_back("-ldl"); in addAsanRTLinux()
1414 CmdArgs.push_back("-export-dynamic"); in addAsanRTLinux()
1422 ArgStringList &CmdArgs) { in addTsanRTLinux() argument
1433 CmdArgs.push_back(Args.MakeArgString(LibTsan)); in addTsanRTLinux()
1434 CmdArgs.push_back("-lpthread"); in addTsanRTLinux()
1435 CmdArgs.push_back("-ldl"); in addTsanRTLinux()
1436 CmdArgs.push_back("-export-dynamic"); in addTsanRTLinux()
1466 ArgStringList CmdArgs; in ConstructJob() local
1473 CmdArgs.push_back("-cc1"); in ConstructJob()
1476 CmdArgs.push_back("-triple"); in ConstructJob()
1478 CmdArgs.push_back(Args.MakeArgString(TripleStr)); in ConstructJob()
1485 CmdArgs.push_back("-analyze"); in ConstructJob()
1487 CmdArgs.push_back("-migrate"); in ConstructJob()
1490 CmdArgs.push_back("-Eonly"); in ConstructJob()
1492 CmdArgs.push_back("-E"); in ConstructJob()
1494 CmdArgs.push_back("-emit-obj"); in ConstructJob()
1497 CmdArgs.push_back("-mrelax-all"); in ConstructJob()
1513 CmdArgs.push_back("-msave-temp-labels"); in ConstructJob()
1515 CmdArgs.push_back("-mllvm"); in ConstructJob()
1516 CmdArgs.push_back("-fatal-assembler-warnings"); in ConstructJob()
1518 CmdArgs.push_back("-mnoexecstack"); in ConstructJob()
1533 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
1535 CmdArgs.push_back("-emit-pch"); in ConstructJob()
1537 CmdArgs.push_back("-emit-pth"); in ConstructJob()
1542 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
1545 CmdArgs.push_back("-emit-llvm"); in ConstructJob()
1548 CmdArgs.push_back("-emit-llvm-bc"); in ConstructJob()
1550 CmdArgs.push_back("-S"); in ConstructJob()
1552 CmdArgs.push_back("-emit-pch"); in ConstructJob()
1554 CmdArgs.push_back("-rewrite-objc"); in ConstructJob()
1557 CmdArgs.push_back("-rewrite-objc"); in ConstructJob()
1566 CmdArgs.push_back("-disable-free"); in ConstructJob()
1570 CmdArgs.push_back("-disable-llvm-verifier"); in ConstructJob()
1575 CmdArgs.push_back("-main-file-name"); in ConstructJob()
1576 CmdArgs.push_back(darwin::CC1::getBaseInputName(Args, Inputs)); in ConstructJob()
1581 CmdArgs.push_back("-static-define"); in ConstructJob()
1585 CmdArgs.push_back("-analyzer-store=region"); in ConstructJob()
1588 CmdArgs.push_back("-analyzer-opt-analyze-nested-blocks"); in ConstructJob()
1590 CmdArgs.push_back("-analyzer-eagerly-assume"); in ConstructJob()
1592 CmdArgs.push_back("-analyzer-ipa=inlining"); in ConstructJob()
1596 CmdArgs.push_back("-analyzer-checker=core"); in ConstructJob()
1599 CmdArgs.push_back("-analyzer-checker=unix"); in ConstructJob()
1602 CmdArgs.push_back("-analyzer-checker=osx"); in ConstructJob()
1604 CmdArgs.push_back("-analyzer-checker=deadcode"); in ConstructJob()
1607 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.UncheckedReturn"); in ConstructJob()
1608 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.getpw"); in ConstructJob()
1609 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.gets"); in ConstructJob()
1610 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mktemp"); in ConstructJob()
1611 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mkstemp"); in ConstructJob()
1612 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.vfork"); in ConstructJob()
1617 CmdArgs.push_back("-analyzer-output"); in ConstructJob()
1619 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
1621 CmdArgs.push_back("plist"); in ConstructJob()
1626 CmdArgs.push_back("-w"); in ConstructJob()
1629 Args.AddAllArgValues(CmdArgs, options::OPT_Xanalyzer); in ConstructJob()
1680 CmdArgs.push_back("-mrelocation-model"); in ConstructJob()
1681 CmdArgs.push_back(Model); in ConstructJob()
1686 CmdArgs.push_back("-pie-level"); in ConstructJob()
1687 CmdArgs.push_back((LastPICArg && in ConstructJob()
1691 CmdArgs.push_back("-pic-level"); in ConstructJob()
1692 CmdArgs.push_back(((ModelStr != "dynamic-no-pic" && LastPICArg && in ConstructJob()
1699 CmdArgs.push_back("-fno-merge-all-constants"); in ConstructJob()
1704 CmdArgs.push_back("-mregparm"); in ConstructJob()
1705 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
1709 CmdArgs.push_back("-mrtd"); in ConstructJob()
1712 CmdArgs.push_back("-mdisable-fp-elim"); in ConstructJob()
1715 CmdArgs.push_back("-mno-zero-initialized-in-bss"); in ConstructJob()
1719 CmdArgs.push_back("-relaxed-aliasing"); in ConstructJob()
1722 CmdArgs.push_back("-fstrict-enums"); in ConstructJob()
1725 CmdArgs.push_back("-mdisable-tail-calls"); in ConstructJob()
1739 CmdArgs.push_back("-menable-no-infs"); in ConstructJob()
1747 CmdArgs.push_back("-menable-no-nans"); in ConstructJob()
1756 CmdArgs.push_back("-fmath-errno"); in ConstructJob()
1800 CmdArgs.push_back("-menable-unsafe-fp-math"); in ConstructJob()
1809 CmdArgs.push_back(Args.MakeArgString("-ffp-contract=" + Val)); in ConstructJob()
1816 CmdArgs.push_back(Args.MakeArgString("-ffp-contract=fast")); in ConstructJob()
1826 CmdArgs.push_back("-ffast-math"); in ConstructJob()
1828 CmdArgs.push_back("-ffinite-math-only"); in ConstructJob()
1836 CmdArgs.push_back("-masm-verbose"); in ConstructJob()
1839 CmdArgs.push_back("-mdebug-pass"); in ConstructJob()
1840 CmdArgs.push_back("Structure"); in ConstructJob()
1843 CmdArgs.push_back("-mdebug-pass"); in ConstructJob()
1844 CmdArgs.push_back("Arguments"); in ConstructJob()
1850 CmdArgs.push_back("-mconstructor-aliases"); in ConstructJob()
1855 CmdArgs.push_back("-fforbid-guard-variables"); in ConstructJob()
1858 CmdArgs.push_back("-mms-bitfields"); in ConstructJob()
1871 CmdArgs.push_back("-munwind-tables"); in ConstructJob()
1873 getToolChain().addClangTargetOptions(CmdArgs); in ConstructJob()
1876 CmdArgs.push_back("-mlimit-float-precision"); in ConstructJob()
1877 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
1884 CmdArgs.push_back("-mcode-model"); in ConstructJob()
1885 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
1895 AddARMTargetArgs(Args, CmdArgs, KernelOrKext); in ConstructJob()
1902 AddMIPSTargetArgs(Args, CmdArgs); in ConstructJob()
1907 AddPPCTargetArgs(Args, CmdArgs); in ConstructJob()
1911 AddSparcTargetArgs(Args, CmdArgs); in ConstructJob()
1916 AddX86TargetArgs(Args, CmdArgs); in ConstructJob()
1920 AddHexagonTargetArgs(Args, CmdArgs); in ConstructJob()
1928 CmdArgs.push_back("-target-linker-version"); in ConstructJob()
1929 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
1936 CmdArgs.push_back("-momit-leaf-frame-pointer"); in ConstructJob()
1953 Args.AddAllArgs(CmdArgs, options::OPT_v); in ConstructJob()
1954 Args.AddLastArg(CmdArgs, options::OPT_H); in ConstructJob()
1956 CmdArgs.push_back("-header-include-file"); in ConstructJob()
1957 CmdArgs.push_back(D.CCPrintHeadersFilename ? in ConstructJob()
1960 Args.AddLastArg(CmdArgs, options::OPT_P); in ConstructJob()
1961 Args.AddLastArg(CmdArgs, options::OPT_print_ivar_layout); in ConstructJob()
1964 CmdArgs.push_back("-diagnostic-log-file"); in ConstructJob()
1965 CmdArgs.push_back(D.CCLogDiagnosticsFilename ? in ConstructJob()
1974 CmdArgs.push_back("-gline-tables-only"); in ConstructJob()
1977 CmdArgs.push_back("-g"); in ConstructJob()
1984 Args.AddAllArgs(CmdArgs, options::OPT_ffunction_sections); in ConstructJob()
1985 Args.AddAllArgs(CmdArgs, options::OPT_fdata_sections); in ConstructJob()
1987 Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions); in ConstructJob()
1991 CmdArgs.push_back("-femit-coverage-notes"); in ConstructJob()
1994 CmdArgs.push_back("-femit-coverage-data"); in ConstructJob()
1999 CmdArgs.push_back("-coverage-file"); in ConstructJob()
2002 CmdArgs.push_back(Args.MakeArgString(absFilename)); in ConstructJob()
2008 CmdArgs.push_back("-nostdsysteminc"); in ConstructJob()
2009 CmdArgs.push_back("-nobuiltininc"); in ConstructJob()
2012 CmdArgs.push_back("-nostdsysteminc"); in ConstructJob()
2013 Args.AddLastArg(CmdArgs, options::OPT_nostdincxx); in ConstructJob()
2014 Args.AddLastArg(CmdArgs, options::OPT_nobuiltininc); in ConstructJob()
2018 CmdArgs.push_back("-resource-dir"); in ConstructJob()
2019 CmdArgs.push_back(D.ResourceDir.c_str()); in ConstructJob()
2021 Args.AddLastArg(CmdArgs, options::OPT_working_directory); in ConstructJob()
2033 CmdArgs.push_back("-arcmt-check"); in ConstructJob()
2036 CmdArgs.push_back("-arcmt-modify"); in ConstructJob()
2039 CmdArgs.push_back("-arcmt-migrate"); in ConstructJob()
2040 CmdArgs.push_back("-mt-migrate-directory"); in ConstructJob()
2041 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2043 Args.AddLastArg(CmdArgs, options::OPT_arcmt_migrate_report_output); in ConstructJob()
2044 Args.AddLastArg(CmdArgs, options::OPT_arcmt_migrate_emit_arc_errors); in ConstructJob()
2055 CmdArgs.push_back("-mt-migrate-directory"); in ConstructJob()
2056 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2061 CmdArgs.push_back("-objcmt-migrate-literals"); in ConstructJob()
2062 CmdArgs.push_back("-objcmt-migrate-subscripting"); in ConstructJob()
2064 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_literals); in ConstructJob()
2065 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_subscripting); in ConstructJob()
2074 AddPreprocessingOptions(C, D, Args, CmdArgs, Output, Inputs); in ConstructJob()
2086 CmdArgs.push_back("-O3"); in ConstructJob()
2089 CmdArgs.push_back("-O2"); in ConstructJob()
2091 A->render(Args, CmdArgs); in ConstructJob()
2094 Args.AddAllArgs(CmdArgs, options::OPT_W_Group); in ConstructJob()
2096 CmdArgs.push_back("-pedantic"); in ConstructJob()
2097 Args.AddLastArg(CmdArgs, options::OPT_pedantic_errors); in ConstructJob()
2098 Args.AddLastArg(CmdArgs, options::OPT_w); in ConstructJob()
2108 CmdArgs.push_back("-std=c++98"); in ConstructJob()
2110 CmdArgs.push_back("-std=c89"); in ConstructJob()
2112 Std->render(Args, CmdArgs); in ConstructJob()
2117 A->render(Args, CmdArgs); in ConstructJob()
2126 Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ, in ConstructJob()
2129 CmdArgs.push_back("-std=c++11"); in ConstructJob()
2131 Args.AddLastArg(CmdArgs, options::OPT_trigraphs); in ConstructJob()
2140 CmdArgs.push_back("-fconst-strings"); in ConstructJob()
2149 CmdArgs.push_back("-fdeprecated-macro"); in ConstructJob()
2155 CmdArgs.push_back("-fgnu-keywords"); in ConstructJob()
2157 CmdArgs.push_back("-fno-gnu-keywords"); in ConstructJob()
2161 CmdArgs.push_back("-fno-dwarf2-cfi-asm"); in ConstructJob()
2164 CmdArgs.push_back("-fno-dwarf-directory-asm"); in ConstructJob()
2171 CmdArgs.push_back("-fdebug-compilation-dir"); in ConstructJob()
2172 CmdArgs.push_back(Args.MakeArgString(CompDir)); in ConstructJob()
2178 CmdArgs.push_back("-ftemplate-depth"); in ConstructJob()
2179 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2183 CmdArgs.push_back("-fconstexpr-depth"); in ConstructJob()
2184 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2191 CmdArgs.push_back(Args.MakeArgString("-Wlarge-by-value-copy=" + bytes)); in ConstructJob()
2193 CmdArgs.push_back("-Wlarge-by-value-copy=64"); // default value in ConstructJob()
2200 CmdArgs.push_back(Args.MakeArgString("-fbounds-checking=" + val)); in ConstructJob()
2202 CmdArgs.push_back("-fbounds-checking=1"); in ConstructJob()
2206 CmdArgs.push_back("-relocatable-pch"); in ConstructJob()
2209 CmdArgs.push_back("-fconstant-string-class"); in ConstructJob()
2210 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2214 CmdArgs.push_back("-ftabstop"); in ConstructJob()
2215 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2218 CmdArgs.push_back("-ferror-limit"); in ConstructJob()
2220 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2222 CmdArgs.push_back("19"); in ConstructJob()
2225 CmdArgs.push_back("-fmacro-backtrace-limit"); in ConstructJob()
2226 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2230 CmdArgs.push_back("-ftemplate-backtrace-limit"); in ConstructJob()
2231 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2235 CmdArgs.push_back("-fconstexpr-backtrace-limit"); in ConstructJob()
2236 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2240 CmdArgs.push_back("-fmessage-length"); in ConstructJob()
2242 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2247 CmdArgs.push_back(Args.MakeArgString(Twine(N))); in ConstructJob()
2251 CmdArgs.push_back("-fvisibility"); in ConstructJob()
2252 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2255 Args.AddLastArg(CmdArgs, options::OPT_fvisibility_inlines_hidden); in ConstructJob()
2257 Args.AddLastArg(CmdArgs, options::OPT_ftlsmodel_EQ); in ConstructJob()
2262 CmdArgs.push_back("-ffreestanding"); in ConstructJob()
2265 Args.AddLastArg(CmdArgs, options::OPT_fcatch_undefined_behavior); in ConstructJob()
2266 Args.AddLastArg(CmdArgs, options::OPT_femit_all_decls); in ConstructJob()
2267 Args.AddLastArg(CmdArgs, options::OPT_fheinous_gnu_extensions); in ConstructJob()
2268 Args.AddLastArg(CmdArgs, options::OPT_flimit_debug_info); in ConstructJob()
2269 Args.AddLastArg(CmdArgs, options::OPT_fno_limit_debug_info); in ConstructJob()
2270 Args.AddLastArg(CmdArgs, options::OPT_fno_operator_names); in ConstructJob()
2271 Args.AddLastArg(CmdArgs, options::OPT_faltivec); in ConstructJob()
2272 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_show_template_tree); in ConstructJob()
2273 Args.AddLastArg(CmdArgs, options::OPT_fno_elide_type); in ConstructJob()
2283 Args.AddLastArg(CmdArgs, options::OPT_pg); in ConstructJob()
2287 CmdArgs.push_back("-faddress-sanitizer"); in ConstructJob()
2291 CmdArgs.push_back("-fthread-sanitizer"); in ConstructJob()
2296 CmdArgs.push_back("-fno-lax-vector-conversions"); in ConstructJob()
2299 CmdArgs.push_back("-fapple-kext"); in ConstructJob()
2303 CmdArgs.push_back("-frewrite-includes"); in ConstructJob()
2305 Args.AddLastArg(CmdArgs, options::OPT_fobjc_sender_dependent_dispatch); in ConstructJob()
2306 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_print_source_range_info); in ConstructJob()
2307 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_parseable_fixits); in ConstructJob()
2308 Args.AddLastArg(CmdArgs, options::OPT_ftime_report); in ConstructJob()
2309 Args.AddLastArg(CmdArgs, options::OPT_ftrapv); in ConstructJob()
2312 CmdArgs.push_back("-ftrapv-handler"); in ConstructJob()
2313 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2316 Args.AddLastArg(CmdArgs, options::OPT_ftrap_function_EQ); in ConstructJob()
2323 CmdArgs.push_back("-fwrapv"); in ConstructJob()
2327 CmdArgs.push_back("-fwrapv"); in ConstructJob()
2329 Args.AddLastArg(CmdArgs, options::OPT_fwritable_strings); in ConstructJob()
2330 Args.AddLastArg(CmdArgs, options::OPT_funroll_loops); in ConstructJob()
2332 Args.AddLastArg(CmdArgs, options::OPT_pthread); in ConstructJob()
2348 CmdArgs.push_back("-stack-protector"); in ConstructJob()
2349 CmdArgs.push_back(Args.MakeArgString(Twine(StackProtectorLevel))); in ConstructJob()
2356 CmdArgs.push_back("-stack-protector-buffer-size"); in ConstructJob()
2358 CmdArgs.push_back(Args.MakeArgString(Str.drop_front(16))); in ConstructJob()
2367 CmdArgs.push_back("-backend-option"); in ConstructJob()
2368 CmdArgs.push_back("-force-align-stack"); in ConstructJob()
2372 CmdArgs.push_back(Args.MakeArgString("-mstackrealign")); in ConstructJob()
2377 CmdArgs.push_back(Args.MakeArgString("-mstack-alignment=" + alignment)); in ConstructJob()
2385 CmdArgs.push_back("-fapple-kext"); in ConstructJob()
2387 CmdArgs.push_back("-fno-builtin"); in ConstructJob()
2392 CmdArgs.push_back("-fno-builtin"); in ConstructJob()
2396 CmdArgs.push_back("-fno-assume-sane-operator-new"); in ConstructJob()
2404 CmdArgs.push_back("-fblocks"); in ConstructJob()
2408 CmdArgs.push_back("-fblocks-runtime-optional"); in ConstructJob()
2419 CmdArgs.push_back("-fmodules"); in ConstructJob()
2426 CmdArgs.push_back("-fno-access-control"); in ConstructJob()
2432 CmdArgs.push_back("-fno-elide-constructors"); in ConstructJob()
2437 CmdArgs.push_back("-fno-rtti"); in ConstructJob()
2444 CmdArgs.push_back("-fshort-enums"); in ConstructJob()
2449 CmdArgs.push_back("-fno-signed-char"); in ConstructJob()
2454 CmdArgs.push_back("-fno-threadsafe-statics"); in ConstructJob()
2463 CmdArgs.push_back("-fno-use-cxa-atexit"); in ConstructJob()
2468 CmdArgs.push_back("-fms-extensions"); in ConstructJob()
2472 CmdArgs.push_back("-fenable-experimental-ms-inline-asm"); in ConstructJob()
2481 CmdArgs.push_back("-fms-compatibility"); in ConstructJob()
2489 CmdArgs.push_back("-fmsc-version=1300"); in ConstructJob()
2491 CmdArgs.push_back(Args.MakeArgString("-fmsc-version=" + msc_ver)); in ConstructJob()
2498 CmdArgs.push_back("-fborland-extensions"); in ConstructJob()
2505 CmdArgs.push_back("-fdelayed-template-parsing"); in ConstructJob()
2511 A->render(Args, CmdArgs); in ConstructJob()
2516 CmdArgs.push_back("-fgnu89-inline"); in ConstructJob()
2519 CmdArgs.push_back("-fno-inline"); in ConstructJob()
2522 CmdArgs.push_back("-fno-inline-functions"); in ConstructJob()
2524 ObjCRuntime objcRuntime = AddObjCRuntimeArgs(Args, CmdArgs, rewriteKind); in ConstructJob()
2534 CmdArgs.push_back("-fobjc-dispatch-method=mixed"); in ConstructJob()
2536 CmdArgs.push_back("-fobjc-dispatch-method=non-legacy"); in ConstructJob()
2543 CmdArgs.push_back("-fobjc-default-synthesize-properties"); in ConstructJob()
2552 CmdArgs.push_back("-fobjc-arc"); in ConstructJob()
2559 CmdArgs.push_back("-fobjc-arc-cxxlib=libc++"); in ConstructJob()
2561 CmdArgs.push_back("-fobjc-arc-cxxlib=libstdc++"); in ConstructJob()
2569 CmdArgs.push_back("-fobjc-arc-exceptions"); in ConstructJob()
2575 CmdArgs.push_back("-fno-objc-infer-related-result-type"); in ConstructJob()
2587 GCArg->render(Args, CmdArgs); in ConstructJob()
2597 KernelOrKext, objcRuntime, CmdArgs); in ConstructJob()
2600 CmdArgs.push_back("-fsjlj-exceptions"); in ConstructJob()
2605 CmdArgs.push_back("-fno-assume-sane-operator-new"); in ConstructJob()
2613 CmdArgs.push_back("-fno-constant-cfstrings"); in ConstructJob()
2618 A->render(Args, CmdArgs); in ConstructJob()
2631 CmdArgs.push_back("-fpascal-strings"); in ConstructJob()
2638 CmdArgs.push_back(Args.MakeArgString(PackStructStr)); in ConstructJob()
2641 CmdArgs.push_back("-fpack-struct=1"); in ConstructJob()
2647 CmdArgs.push_back("-fno-common"); in ConstructJob()
2653 CmdArgs.push_back("-fno-common"); in ConstructJob()
2671 CmdArgs.push_back("-fno-caret-diagnostics"); in ConstructJob()
2676 CmdArgs.push_back("-fno-diagnostics-fixit-info"); in ConstructJob()
2681 CmdArgs.push_back("-fdiagnostics-show-option"); in ConstructJob()
2685 CmdArgs.push_back("-fdiagnostics-show-category"); in ConstructJob()
2686 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2691 CmdArgs.push_back("-fdiagnostics-format"); in ConstructJob()
2692 CmdArgs.push_back(A->getValue(Args)); in ConstructJob()
2700 CmdArgs.push_back("-fdiagnostics-show-note-include-stack"); in ConstructJob()
2702 CmdArgs.push_back("-fno-diagnostics-show-note-include-stack"); in ConstructJob()
2710 CmdArgs.push_back("-fcolor-diagnostics"); in ConstructJob()
2714 CmdArgs.push_back("-fno-show-source-location"); in ConstructJob()
2719 CmdArgs.push_back("-fno-show-column"); in ConstructJob()
2723 CmdArgs.push_back("-fno-spell-checking"); in ConstructJob()
2731 A->render(Args, CmdArgs); in ConstructJob()
2738 CmdArgs.push_back("-fdollars-in-identifiers"); in ConstructJob()
2740 CmdArgs.push_back("-fno-dollars-in-identifiers"); in ConstructJob()
2753 CmdArgs.push_back("-fapple-pragma-pack"); in ConstructJob()
2763 CmdArgs.push_back("-fno-builtin-strcat"); in ConstructJob()
2765 CmdArgs.push_back("-fno-builtin-strcpy"); in ConstructJob()
2773 CmdArgs.push_back("-traditional-cpp"); in ConstructJob()
2778 Args.AddLastArg(CmdArgs, options::OPT_dM); in ConstructJob()
2779 Args.AddLastArg(CmdArgs, options::OPT_dD); in ConstructJob()
2783 CmdArgs.push_back("-serialize-diagnostic-file"); in ConstructJob()
2784 CmdArgs.push_back(Args.MakeArgString(A->getValue(Args))); in ConstructJob()
2789 Args.AddAllArgValues(CmdArgs, options::OPT_Xclang); in ConstructJob()
2797 CmdArgs.push_back("-disable-llvm-optzns"); in ConstructJob()
2799 (*it)->render(Args, CmdArgs); in ConstructJob()
2805 CmdArgs.push_back("-o"); in ConstructJob()
2806 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
2814 CmdArgs.push_back("-x"); in ConstructJob()
2815 CmdArgs.push_back(types::getTypeName(II.getType())); in ConstructJob()
2817 CmdArgs.push_back(II.getFilename()); in ConstructJob()
2819 II.getInputArg().renderAsInput(Args, CmdArgs); in ConstructJob()
2822 Args.AddAllArgs(CmdArgs, options::OPT_undef); in ConstructJob()
2840 CmdArgs.push_back("-dwarf-debug-flags"); in ConstructJob()
2841 CmdArgs.push_back(Args.MakeArgString(Flags.str())); in ConstructJob()
2844 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
2869 ArgStringList &CmdArgs) const { in AddARMTargetArgs()
2874 CmdArgs.push_back("-target-cpu"); in AddARMTargetArgs()
2875 CmdArgs.push_back(Args.MakeArgString(getARMTargetCPU(Args, Triple))); in AddARMTargetArgs()
2879 addFPUArgs(D, A, Args, CmdArgs); in AddARMTargetArgs()
2883 addFPMathArgs(D, A, Args, CmdArgs, getARMTargetCPU(Args, Triple)); in AddARMTargetArgs()
3016 ArgStringList CmdArgs; in ConstructJob() local
3031 CmdArgs.push_back("-cc1as"); in ConstructJob()
3034 CmdArgs.push_back("-triple"); in ConstructJob()
3037 CmdArgs.push_back(Args.MakeArgString(TripleStr)); in ConstructJob()
3041 CmdArgs.push_back("-filetype"); in ConstructJob()
3042 CmdArgs.push_back("obj"); in ConstructJob()
3045 CmdArgs.push_back("-relax-all"); in ConstructJob()
3054 AddARMTargetArgs(Args, CmdArgs); in ConstructJob()
3074 CmdArgs.push_back("-g"); in ConstructJob()
3092 CmdArgs.push_back("-dwarf-debug-flags"); in ConstructJob()
3093 CmdArgs.push_back(Args.MakeArgString(Flags.str())); in ConstructJob()
3098 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
3100 Args.AddAllArgs(CmdArgs, options::OPT_mllvm); in ConstructJob()
3103 CmdArgs.push_back("-o"); in ConstructJob()
3104 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
3107 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
3110 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
3119 ArgStringList CmdArgs; in ConstructJob() local
3135 A->render(Args, CmdArgs); in ConstructJob()
3139 RenderExtraToolArgs(JA, CmdArgs); in ConstructJob()
3144 CmdArgs.push_back("-arch"); in ConstructJob()
3148 CmdArgs.push_back("ppc"); in ConstructJob()
3150 CmdArgs.push_back("ppc64"); in ConstructJob()
3152 CmdArgs.push_back(Args.MakeArgString(Arch)); in ConstructJob()
3161 CmdArgs.push_back("-m32"); in ConstructJob()
3163 CmdArgs.push_back("-m64"); in ConstructJob()
3166 CmdArgs.push_back("-o"); in ConstructJob()
3167 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
3170 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
3173 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
3198 CmdArgs.push_back("-x"); in ConstructJob()
3199 CmdArgs.push_back(types::getTypeName(II.getType())); in ConstructJob()
3203 CmdArgs.push_back(II.getFilename()); in ConstructJob()
3209 CmdArgs.push_back("-lstdc++"); in ConstructJob()
3214 A.render(Args, CmdArgs); in ConstructJob()
3229 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
3233 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3234 CmdArgs.push_back("-E"); in RenderExtraToolArgs()
3238 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3243 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3249 CmdArgs.push_back("-c"); in RenderExtraToolArgs()
3255 CmdArgs.push_back("-S"); in RenderExtraToolArgs()
3260 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3261 CmdArgs.push_back("-c"); in RenderExtraToolArgs()
3265 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3271 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3281 ArgStringList CmdArgs; in ConstructJob() local
3285 CmdArgs.push_back(Args.MakeArgString(MarchString)); in ConstructJob()
3287 RenderExtraToolArgs(JA, CmdArgs); in ConstructJob()
3290 CmdArgs.push_back("-o"); in ConstructJob()
3291 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
3294 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
3320 CmdArgs.push_back(II.getFilename()); in ConstructJob()
3323 II.getInputArg().render(Args, CmdArgs); in ConstructJob()
3329 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
3333 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
3344 ArgStringList CmdArgs; in ConstructJob() local
3360 A->render(Args, CmdArgs); in ConstructJob()
3364 RenderExtraToolArgs(JA, CmdArgs); in ConstructJob()
3370 A->render(Args, CmdArgs); in ConstructJob()
3372 CmdArgs.push_back (Args.MakeArgString("-m" + getHexagonTargetCPU(Args))); in ConstructJob()
3375 CmdArgs.push_back (Args.MakeArgString("-m" + getHexagonTargetCPU(Args))); in ConstructJob()
3378 CmdArgs.push_back("-mqdsp6-compat"); in ConstructJob()
3389 CmdArgs.push_back("-o"); in ConstructJob()
3390 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
3407 CmdArgs.push_back(II.getFilename()); in ConstructJob()
3410 II.getInputArg().render(Args, CmdArgs); in ConstructJob()
3412 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
3473 void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const { in RemoveCC1UnsupportedArgs()
3474 for (ArgStringList::iterator it = CmdArgs.begin(), ie = CmdArgs.end(); in RemoveCC1UnsupportedArgs()
3482 it = CmdArgs.erase(it, it+2); in RemoveCC1UnsupportedArgs()
3483 ie = CmdArgs.end(); in RemoveCC1UnsupportedArgs()
3612 it = CmdArgs.erase(it); in RemoveCC1UnsupportedArgs()
3613 ie = CmdArgs.end(); in RemoveCC1UnsupportedArgs()
3621 ArgStringList &CmdArgs) const { in AddCC1Args()
3629 CmdArgs.push_back("-fPIC"); in AddCC1Args()
3634 CmdArgs.push_back("-fno-builtin-strcat"); in AddCC1Args()
3636 CmdArgs.push_back("-fno-builtin-strcpy"); in AddCC1Args()
3641 CmdArgs.push_back("-feliminate-unused-debug-symbols"); in AddCC1Args()
3644 void darwin::CC1::AddCC1OptionsArgs(const ArgList &Args, ArgStringList &CmdArgs, in AddCC1OptionsArgs() argument
3653 CmdArgs.push_back("-O3"); in AddCC1OptionsArgs()
3660 AddCC1Args(Args, CmdArgs); in AddCC1OptionsArgs()
3663 CmdArgs.push_back("-quiet"); in AddCC1OptionsArgs()
3665 CmdArgs.push_back("-dumpbase"); in AddCC1OptionsArgs()
3666 CmdArgs.push_back(darwin::CC1::getBaseInputName(Args, Inputs)); in AddCC1OptionsArgs()
3668 Args.AddAllArgs(CmdArgs, options::OPT_d_Group); in AddCC1OptionsArgs()
3670 Args.AddAllArgs(CmdArgs, options::OPT_m_Group); in AddCC1OptionsArgs()
3671 Args.AddAllArgs(CmdArgs, options::OPT_a_Group); in AddCC1OptionsArgs()
3679 CmdArgs.push_back("-auxbase-strip"); in AddCC1OptionsArgs()
3680 CmdArgs.push_back(OutputOpt->getValue(Args)); in AddCC1OptionsArgs()
3682 CmdArgs.push_back("-auxbase"); in AddCC1OptionsArgs()
3683 CmdArgs.push_back(darwin::CC1::getBaseInputStem(Args, Inputs)); in AddCC1OptionsArgs()
3686 Args.AddAllArgs(CmdArgs, options::OPT_g_Group); in AddCC1OptionsArgs()
3688 Args.AddAllArgs(CmdArgs, options::OPT_O); in AddCC1OptionsArgs()
3690 Args.AddAllArgs(CmdArgs, options::OPT_W_Group, options::OPT_pedantic_Group); in AddCC1OptionsArgs()
3691 Args.AddLastArg(CmdArgs, options::OPT_w); in AddCC1OptionsArgs()
3692 Args.AddAllArgs(CmdArgs, options::OPT_std_EQ, options::OPT_ansi, in AddCC1OptionsArgs()
3696 Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ, in AddCC1OptionsArgs()
3701 CmdArgs.push_back("-version"); in AddCC1OptionsArgs()
3704 CmdArgs.push_back("-p"); in AddCC1OptionsArgs()
3705 Args.AddLastArg(CmdArgs, options::OPT_p); in AddCC1OptionsArgs()
3720 (*it)->render(Args, CmdArgs); in AddCC1OptionsArgs()
3724 Args.AddAllArgs(CmdArgs, options::OPT_f_Group, options::OPT_fsyntax_only); in AddCC1OptionsArgs()
3729 Args.AddAllArgs(CmdArgs, options::OPT_undef); in AddCC1OptionsArgs()
3731 CmdArgs.push_back("-fno-ident"); in AddCC1OptionsArgs()
3737 CmdArgs.append(OutputArgs.begin(), OutputArgs.end()); in AddCC1OptionsArgs()
3740 Args.AddAllArgs(CmdArgs, options::OPT__param); in AddCC1OptionsArgs()
3744 CmdArgs.push_back("-fno-builtin"); in AddCC1OptionsArgs()
3745 CmdArgs.push_back("-fno-merge-constants"); in AddCC1OptionsArgs()
3749 CmdArgs.push_back("-fprofile-arcs"); in AddCC1OptionsArgs()
3750 CmdArgs.push_back("-ftest-coverage"); in AddCC1OptionsArgs()
3754 CmdArgs.push_back("-D__private_extern__=extern"); in AddCC1OptionsArgs()
3757 void darwin::CC1::AddCPPOptionsArgs(const ArgList &Args, ArgStringList &CmdArgs, in AddCPPOptionsArgs() argument
3761 AddCPPUniqueOptionsArgs(Args, CmdArgs, Inputs); in AddCPPOptionsArgs()
3763 CmdArgs.append(OutputArgs.begin(), OutputArgs.end()); in AddCPPOptionsArgs()
3765 AddCC1Args(Args, CmdArgs); in AddCPPOptionsArgs()
3772 Args.AddAllArgs(CmdArgs, options::OPT_m_Group); in AddCPPOptionsArgs()
3773 Args.AddAllArgs(CmdArgs, options::OPT_std_EQ, options::OPT_ansi, in AddCPPOptionsArgs()
3777 Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ, in AddCPPOptionsArgs()
3780 Args.AddAllArgs(CmdArgs, options::OPT_W_Group, options::OPT_pedantic_Group); in AddCPPOptionsArgs()
3781 Args.AddLastArg(CmdArgs, options::OPT_w); in AddCPPOptionsArgs()
3784 Args.AddAllArgs(CmdArgs, options::OPT_f_Group, options::OPT_fsyntax_only); in AddCPPOptionsArgs()
3791 CmdArgs.push_back("-fworking-directory"); in AddCPPOptionsArgs()
3793 Args.AddAllArgs(CmdArgs, options::OPT_O); in AddCPPOptionsArgs()
3794 Args.AddAllArgs(CmdArgs, options::OPT_undef); in AddCPPOptionsArgs()
3796 CmdArgs.push_back("-fpch-preprocess"); in AddCPPOptionsArgs()
3800 ArgStringList &CmdArgs, in AddCPPUniqueOptionsArgs() argument
3808 Args.AddLastArg(CmdArgs, options::OPT_C); in AddCPPUniqueOptionsArgs()
3809 Args.AddLastArg(CmdArgs, options::OPT_CC); in AddCPPUniqueOptionsArgs()
3811 CmdArgs.push_back("-quiet"); in AddCPPUniqueOptionsArgs()
3812 Args.AddAllArgs(CmdArgs, options::OPT_nostdinc); in AddCPPUniqueOptionsArgs()
3813 Args.AddAllArgs(CmdArgs, options::OPT_nostdincxx); in AddCPPUniqueOptionsArgs()
3814 Args.AddLastArg(CmdArgs, options::OPT_v); in AddCPPUniqueOptionsArgs()
3815 Args.AddAllArgs(CmdArgs, options::OPT_I_Group, options::OPT_F); in AddCPPUniqueOptionsArgs()
3816 Args.AddLastArg(CmdArgs, options::OPT_P); in AddCPPUniqueOptionsArgs()
3820 CmdArgs.push_back("-imultilib"); in AddCPPUniqueOptionsArgs()
3821 CmdArgs.push_back("x86_64"); in AddCPPUniqueOptionsArgs()
3825 CmdArgs.push_back("-MD"); in AddCPPUniqueOptionsArgs()
3826 CmdArgs.push_back(darwin::CC1::getDependencyFileName(Args, Inputs)); in AddCPPUniqueOptionsArgs()
3830 CmdArgs.push_back("-MMD"); in AddCPPUniqueOptionsArgs()
3831 CmdArgs.push_back(darwin::CC1::getDependencyFileName(Args, Inputs)); in AddCPPUniqueOptionsArgs()
3834 Args.AddLastArg(CmdArgs, options::OPT_M); in AddCPPUniqueOptionsArgs()
3835 Args.AddLastArg(CmdArgs, options::OPT_MM); in AddCPPUniqueOptionsArgs()
3836 Args.AddAllArgs(CmdArgs, options::OPT_MF); in AddCPPUniqueOptionsArgs()
3837 Args.AddLastArg(CmdArgs, options::OPT_MG); in AddCPPUniqueOptionsArgs()
3838 Args.AddLastArg(CmdArgs, options::OPT_MP); in AddCPPUniqueOptionsArgs()
3839 Args.AddAllArgs(CmdArgs, options::OPT_MQ); in AddCPPUniqueOptionsArgs()
3840 Args.AddAllArgs(CmdArgs, options::OPT_MT); in AddCPPUniqueOptionsArgs()
3844 CmdArgs.push_back("-MQ"); in AddCPPUniqueOptionsArgs()
3845 CmdArgs.push_back(OutputOpt->getValue(Args)); in AddCPPUniqueOptionsArgs()
3849 Args.AddLastArg(CmdArgs, options::OPT_remap); in AddCPPUniqueOptionsArgs()
3851 CmdArgs.push_back("-dD"); in AddCPPUniqueOptionsArgs()
3852 Args.AddLastArg(CmdArgs, options::OPT_H); in AddCPPUniqueOptionsArgs()
3854 AddCPPArgs(Args, CmdArgs); in AddCPPUniqueOptionsArgs()
3856 Args.AddAllArgs(CmdArgs, options::OPT_D, options::OPT_U, options::OPT_A); in AddCPPUniqueOptionsArgs()
3857 Args.AddAllArgs(CmdArgs, options::OPT_i_Group); in AddCPPUniqueOptionsArgs()
3863 CmdArgs.push_back(II.getFilename()); in AddCPPUniqueOptionsArgs()
3866 Args.AddAllArgValues(CmdArgs, options::OPT_Wp_COMMA, in AddCPPUniqueOptionsArgs()
3870 CmdArgs.push_back("-D_MUDFLAP"); in AddCPPUniqueOptionsArgs()
3871 CmdArgs.push_back("-include"); in AddCPPUniqueOptionsArgs()
3872 CmdArgs.push_back("mf-runtime.h"); in AddCPPUniqueOptionsArgs()
3876 CmdArgs.push_back("-D_MUDFLAP"); in AddCPPUniqueOptionsArgs()
3877 CmdArgs.push_back("-D_MUDFLAPTH"); in AddCPPUniqueOptionsArgs()
3878 CmdArgs.push_back("-include"); in AddCPPUniqueOptionsArgs()
3879 CmdArgs.push_back("mf-runtime.h"); in AddCPPUniqueOptionsArgs()
3884 ArgStringList &CmdArgs) const { in AddCPPArgs()
3892 CmdArgs.push_back("-D__STATIC__"); in AddCPPArgs()
3894 CmdArgs.push_back("-D__DYNAMIC__"); in AddCPPArgs()
3897 CmdArgs.push_back("-D_REENTRANT"); in AddCPPArgs()
3905 ArgStringList CmdArgs; in ConstructJob() local
3909 CmdArgs.push_back("-E"); in ConstructJob()
3913 CmdArgs.push_back("-traditional-cpp"); in ConstructJob()
3921 AddCPPOptionsArgs(Args, CmdArgs, Inputs, OutputArgs); in ConstructJob()
3923 AddCPPOptionsArgs(Args, CmdArgs, Inputs, ArgStringList()); in ConstructJob()
3924 CmdArgs.append(OutputArgs.begin(), OutputArgs.end()); in ConstructJob()
3927 Args.AddAllArgs(CmdArgs, options::OPT_d_Group); in ConstructJob()
3929 RemoveCC1UnsupportedArgs(CmdArgs); in ConstructJob()
3934 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
3943 ArgStringList CmdArgs; in ConstructJob() local
3957 CmdArgs.push_back("-emit-llvm"); in ConstructJob()
3960 CmdArgs.push_back("-emit-llvm-bc"); in ConstructJob()
3984 AddCPPUniqueOptionsArgs(Args, CmdArgs, Inputs); in ConstructJob()
3986 AddCC1OptionsArgs(Args, CmdArgs, Inputs, OutputArgs); in ConstructJob()
3988 AddCC1OptionsArgs(Args, CmdArgs, Inputs, ArgStringList()); in ConstructJob()
3989 CmdArgs.append(OutputArgs.begin(), OutputArgs.end()); in ConstructJob()
3992 CmdArgs.push_back("-fpreprocessed"); in ConstructJob()
4005 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4009 AddCC1OptionsArgs(Args, CmdArgs, Inputs, OutputArgs); in ConstructJob()
4011 AddCC1OptionsArgs(Args, CmdArgs, Inputs, ArgStringList()); in ConstructJob()
4012 CmdArgs.append(OutputArgs.begin(), OutputArgs.end()); in ConstructJob()
4019 CmdArgs.push_back("-o"); in ConstructJob()
4025 CmdArgs.push_back(TmpPath); in ConstructJob()
4034 CmdArgs.push_back(Tmp); in ConstructJob()
4037 RemoveCC1UnsupportedArgs(CmdArgs); in ConstructJob()
4042 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4050 ArgStringList CmdArgs; in ConstructJob() local
4066 CmdArgs.push_back("--gstabs"); in ConstructJob()
4068 CmdArgs.push_back("-g"); in ConstructJob()
4072 AddDarwinArch(Args, CmdArgs); in ConstructJob()
4078 CmdArgs.push_back("-force_cpusubtype_ALL"); in ConstructJob()
4084 CmdArgs.push_back("-static"); in ConstructJob()
4086 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
4090 CmdArgs.push_back("-o"); in ConstructJob()
4091 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4094 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
4100 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4106 ArgStringList &CmdArgs) const { in AddDarwinArch()
4110 CmdArgs.push_back("-arch"); in AddDarwinArch()
4111 CmdArgs.push_back(Args.MakeArgString(ArchName)); in AddDarwinArch()
4115 CmdArgs.push_back("-force_cpusubtype_ALL"); in AddDarwinArch()
4120 ArgStringList &CmdArgs) const { in AddLinkArgs()
4153 CmdArgs.push_back("-demangle"); in AddLinkArgs()
4163 CmdArgs.push_back("-object_path_lto"); in AddLinkArgs()
4164 CmdArgs.push_back(TmpPath); in AddLinkArgs()
4168 Args.AddAllArgs(CmdArgs, options::OPT_static); in AddLinkArgs()
4170 CmdArgs.push_back("-dynamic"); in AddLinkArgs()
4177 AddDarwinArch(Args, CmdArgs); in AddLinkArgs()
4179 Args.AddLastArg(CmdArgs, options::OPT_force__cpusubtype__ALL); in AddLinkArgs()
4181 Args.AddLastArg(CmdArgs, options::OPT_bundle); in AddLinkArgs()
4182 Args.AddAllArgs(CmdArgs, options::OPT_bundle__loader); in AddLinkArgs()
4183 Args.AddAllArgs(CmdArgs, options::OPT_client__name); in AddLinkArgs()
4192 Args.AddLastArg(CmdArgs, options::OPT_force__flat__namespace); in AddLinkArgs()
4193 Args.AddLastArg(CmdArgs, options::OPT_keep__private__externs); in AddLinkArgs()
4194 Args.AddLastArg(CmdArgs, options::OPT_private__bundle); in AddLinkArgs()
4196 CmdArgs.push_back("-dylib"); in AddLinkArgs()
4208 Args.AddAllArgsTranslated(CmdArgs, options::OPT_compatibility__version, in AddLinkArgs()
4210 Args.AddAllArgsTranslated(CmdArgs, options::OPT_current__version, in AddLinkArgs()
4213 AddDarwinArch(Args, CmdArgs); in AddLinkArgs()
4215 Args.AddAllArgsTranslated(CmdArgs, options::OPT_install__name, in AddLinkArgs()
4219 Args.AddLastArg(CmdArgs, options::OPT_all__load); in AddLinkArgs()
4220 Args.AddAllArgs(CmdArgs, options::OPT_allowable__client); in AddLinkArgs()
4221 Args.AddLastArg(CmdArgs, options::OPT_bind__at__load); in AddLinkArgs()
4223 Args.AddLastArg(CmdArgs, options::OPT_arch__errors__fatal); in AddLinkArgs()
4224 Args.AddLastArg(CmdArgs, options::OPT_dead__strip); in AddLinkArgs()
4225 Args.AddLastArg(CmdArgs, options::OPT_no__dead__strip__inits__and__terms); in AddLinkArgs()
4226 Args.AddAllArgs(CmdArgs, options::OPT_dylib__file); in AddLinkArgs()
4227 Args.AddLastArg(CmdArgs, options::OPT_dynamic); in AddLinkArgs()
4228 Args.AddAllArgs(CmdArgs, options::OPT_exported__symbols__list); in AddLinkArgs()
4229 Args.AddLastArg(CmdArgs, options::OPT_flat__namespace); in AddLinkArgs()
4230 Args.AddAllArgs(CmdArgs, options::OPT_force__load); in AddLinkArgs()
4231 Args.AddAllArgs(CmdArgs, options::OPT_headerpad__max__install__names); in AddLinkArgs()
4232 Args.AddAllArgs(CmdArgs, options::OPT_image__base); in AddLinkArgs()
4233 Args.AddAllArgs(CmdArgs, options::OPT_init); in AddLinkArgs()
4246 CmdArgs.push_back("-ios_simulator_version_min"); in AddLinkArgs()
4248 CmdArgs.push_back("-iphoneos_version_min"); in AddLinkArgs()
4250 CmdArgs.push_back("-macosx_version_min"); in AddLinkArgs()
4251 CmdArgs.push_back(Args.MakeArgString(TargetVersion.getAsString())); in AddLinkArgs()
4253 Args.AddLastArg(CmdArgs, options::OPT_nomultidefs); in AddLinkArgs()
4254 Args.AddLastArg(CmdArgs, options::OPT_multi__module); in AddLinkArgs()
4255 Args.AddLastArg(CmdArgs, options::OPT_single__module); in AddLinkArgs()
4256 Args.AddAllArgs(CmdArgs, options::OPT_multiply__defined); in AddLinkArgs()
4257 Args.AddAllArgs(CmdArgs, options::OPT_multiply__defined__unused); in AddLinkArgs()
4264 CmdArgs.push_back("-pie"); in AddLinkArgs()
4266 CmdArgs.push_back("-no_pie"); in AddLinkArgs()
4269 Args.AddLastArg(CmdArgs, options::OPT_prebind); in AddLinkArgs()
4270 Args.AddLastArg(CmdArgs, options::OPT_noprebind); in AddLinkArgs()
4271 Args.AddLastArg(CmdArgs, options::OPT_nofixprebinding); in AddLinkArgs()
4272 Args.AddLastArg(CmdArgs, options::OPT_prebind__all__twolevel__modules); in AddLinkArgs()
4273 Args.AddLastArg(CmdArgs, options::OPT_read__only__relocs); in AddLinkArgs()
4274 Args.AddAllArgs(CmdArgs, options::OPT_sectcreate); in AddLinkArgs()
4275 Args.AddAllArgs(CmdArgs, options::OPT_sectorder); in AddLinkArgs()
4276 Args.AddAllArgs(CmdArgs, options::OPT_seg1addr); in AddLinkArgs()
4277 Args.AddAllArgs(CmdArgs, options::OPT_segprot); in AddLinkArgs()
4278 Args.AddAllArgs(CmdArgs, options::OPT_segaddr); in AddLinkArgs()
4279 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__only__addr); in AddLinkArgs()
4280 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__write__addr); in AddLinkArgs()
4281 Args.AddAllArgs(CmdArgs, options::OPT_seg__addr__table); in AddLinkArgs()
4282 Args.AddAllArgs(CmdArgs, options::OPT_seg__addr__table__filename); in AddLinkArgs()
4283 Args.AddAllArgs(CmdArgs, options::OPT_sub__library); in AddLinkArgs()
4284 Args.AddAllArgs(CmdArgs, options::OPT_sub__umbrella); in AddLinkArgs()
4290 CmdArgs.push_back("-syslibroot"); in AddLinkArgs()
4291 CmdArgs.push_back(C.getArgs().MakeArgString(sysroot)); in AddLinkArgs()
4293 CmdArgs.push_back("-syslibroot"); in AddLinkArgs()
4294 CmdArgs.push_back(A->getValue(Args)); in AddLinkArgs()
4297 Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace); in AddLinkArgs()
4298 Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace__hints); in AddLinkArgs()
4299 Args.AddAllArgs(CmdArgs, options::OPT_umbrella); in AddLinkArgs()
4300 Args.AddAllArgs(CmdArgs, options::OPT_undefined); in AddLinkArgs()
4301 Args.AddAllArgs(CmdArgs, options::OPT_unexported__symbols__list); in AddLinkArgs()
4302 Args.AddAllArgs(CmdArgs, options::OPT_weak__reference__mismatches); in AddLinkArgs()
4303 Args.AddLastArg(CmdArgs, options::OPT_X_Flag); in AddLinkArgs()
4304 Args.AddAllArgs(CmdArgs, options::OPT_y); in AddLinkArgs()
4305 Args.AddLastArg(CmdArgs, options::OPT_w); in AddLinkArgs()
4306 Args.AddAllArgs(CmdArgs, options::OPT_pagezero__size); in AddLinkArgs()
4307 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__); in AddLinkArgs()
4308 Args.AddLastArg(CmdArgs, options::OPT_seglinkedit); in AddLinkArgs()
4309 Args.AddLastArg(CmdArgs, options::OPT_noseglinkedit); in AddLinkArgs()
4310 Args.AddAllArgs(CmdArgs, options::OPT_sectalign); in AddLinkArgs()
4311 Args.AddAllArgs(CmdArgs, options::OPT_sectobjectsymbols); in AddLinkArgs()
4312 Args.AddAllArgs(CmdArgs, options::OPT_segcreate); in AddLinkArgs()
4313 Args.AddLastArg(CmdArgs, options::OPT_whyload); in AddLinkArgs()
4314 Args.AddLastArg(CmdArgs, options::OPT_whatsloaded); in AddLinkArgs()
4315 Args.AddAllArgs(CmdArgs, options::OPT_dylinker__install__name); in AddLinkArgs()
4316 Args.AddLastArg(CmdArgs, options::OPT_dylinker); in AddLinkArgs()
4317 Args.AddLastArg(CmdArgs, options::OPT_Mach); in AddLinkArgs()
4330 ArgStringList CmdArgs; in ConstructJob() local
4339 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4340 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4346 AddLinkArgs(C, Args, CmdArgs); in ConstructJob()
4348 Args.AddAllArgs(CmdArgs, options::OPT_d_Flag); in ConstructJob()
4349 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
4350 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
4351 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
4352 Args.AddAllArgs(CmdArgs, options::OPT_u_Group); in ConstructJob()
4353 Args.AddLastArg(CmdArgs, options::OPT_e); in ConstructJob()
4354 Args.AddAllArgs(CmdArgs, options::OPT_m_Separate); in ConstructJob()
4355 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
4361 CmdArgs.push_back("-ObjC"); in ConstructJob()
4363 CmdArgs.push_back("-o"); in ConstructJob()
4364 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4373 CmdArgs.push_back("-ldylib1.o"); in ConstructJob()
4376 CmdArgs.push_back("-ldylib1.o"); in ConstructJob()
4379 CmdArgs.push_back("-ldylib1.o"); in ConstructJob()
4381 CmdArgs.push_back("-ldylib1.10.5.o"); in ConstructJob()
4389 CmdArgs.push_back("-lbundle1.o"); in ConstructJob()
4392 CmdArgs.push_back("-lbundle1.o"); in ConstructJob()
4395 CmdArgs.push_back("-lbundle1.o"); in ConstructJob()
4404 CmdArgs.push_back("-lgcrt0.o"); in ConstructJob()
4406 CmdArgs.push_back("-lgcrt1.o"); in ConstructJob()
4417 CmdArgs.push_back("-no_new_main"); in ConstructJob()
4422 CmdArgs.push_back("-lcrt0.o"); in ConstructJob()
4427 CmdArgs.push_back("-lcrt1.o"); in ConstructJob()
4430 CmdArgs.push_back("-lcrt1.o"); in ConstructJob()
4432 CmdArgs.push_back("-lcrt1.3.1.o"); in ConstructJob()
4435 CmdArgs.push_back("-lcrt1.o"); in ConstructJob()
4437 CmdArgs.push_back("-lcrt1.10.5.o"); in ConstructJob()
4439 CmdArgs.push_back("-lcrt1.10.6.o"); in ConstructJob()
4453 CmdArgs.push_back(Str); in ConstructJob()
4457 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
4466 CmdArgs.push_back("-undefined"); in ConstructJob()
4467 CmdArgs.push_back("dynamic_lookup"); in ConstructJob()
4473 CmdArgs.push_back("-lgomp"); in ConstructJob()
4475 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
4491 getDarwinToolChain().AddLinkARCArgs(Args, CmdArgs); in ConstructJob()
4493 CmdArgs.push_back("-framework"); in ConstructJob()
4494 CmdArgs.push_back("Foundation"); in ConstructJob()
4496 CmdArgs.push_back("-lobjc"); in ConstructJob()
4500 CmdArgs.push_back("-arch_multiple"); in ConstructJob()
4501 CmdArgs.push_back("-final_output"); in ConstructJob()
4502 CmdArgs.push_back(LinkingOutput); in ConstructJob()
4506 CmdArgs.push_back("-allow_stack_execute"); in ConstructJob()
4511 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
4516 getDarwinToolChain().AddLinkRuntimeLibArgs(Args, CmdArgs); in ConstructJob()
4524 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
4525 Args.AddAllArgs(CmdArgs, options::OPT_F); in ConstructJob()
4529 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4537 ArgStringList CmdArgs; in ConstructJob() local
4539 CmdArgs.push_back("-create"); in ConstructJob()
4542 CmdArgs.push_back("-output"); in ConstructJob()
4543 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4549 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4553 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4561 ArgStringList CmdArgs; in ConstructJob() local
4563 CmdArgs.push_back("-o"); in ConstructJob()
4564 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4569 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
4573 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4581 ArgStringList CmdArgs; in ConstructJob() local
4582 CmdArgs.push_back("--verify"); in ConstructJob()
4583 CmdArgs.push_back("--debug-info"); in ConstructJob()
4584 CmdArgs.push_back("--eh-frame"); in ConstructJob()
4585 CmdArgs.push_back("--quiet"); in ConstructJob()
4592 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
4596 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4604 ArgStringList CmdArgs; in ConstructJob() local
4606 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
4609 CmdArgs.push_back("-o"); in ConstructJob()
4610 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4615 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4620 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4649 ArgStringList CmdArgs; in ConstructJob() local
4652 CmdArgs.push_back("-C"); in ConstructJob()
4656 CmdArgs.push_back("-e"); in ConstructJob()
4657 CmdArgs.push_back("_start"); in ConstructJob()
4661 CmdArgs.push_back("-Bstatic"); in ConstructJob()
4662 CmdArgs.push_back("-dn"); in ConstructJob()
4664 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
4666 CmdArgs.push_back("-shared"); in ConstructJob()
4668 CmdArgs.push_back("--dynamic-linker"); in ConstructJob()
4669 CmdArgs.push_back(Args.MakeArgString(LibPath + "ld.so.1")); in ConstructJob()
4674 CmdArgs.push_back("-o"); in ConstructJob()
4675 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4683 CmdArgs.push_back(Args.MakeArgString(LibPath + "crt1.o")); in ConstructJob()
4684 CmdArgs.push_back(Args.MakeArgString(LibPath + "crti.o")); in ConstructJob()
4685 CmdArgs.push_back(Args.MakeArgString(LibPath + "values-Xa.o")); in ConstructJob()
4686 CmdArgs.push_back(Args.MakeArgString(GCCLibPath + "crtbegin.o")); in ConstructJob()
4688 CmdArgs.push_back(Args.MakeArgString(LibPath + "crti.o")); in ConstructJob()
4689 CmdArgs.push_back(Args.MakeArgString(LibPath + "values-Xa.o")); in ConstructJob()
4690 CmdArgs.push_back(Args.MakeArgString(GCCLibPath + "crtbegin.o")); in ConstructJob()
4693 CmdArgs.push_back(Args.MakeArgString(LibPath + "cxa_finalize.o")); in ConstructJob()
4696 CmdArgs.push_back(Args.MakeArgString("-L" + GCCLibPath)); in ConstructJob()
4698 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
4699 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
4700 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
4701 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
4703 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
4708 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
4709 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
4711 CmdArgs.push_back("-lgcc"); in ConstructJob()
4712 CmdArgs.push_back("-lc"); in ConstructJob()
4713 CmdArgs.push_back("-lm"); in ConstructJob()
4719 CmdArgs.push_back(Args.MakeArgString(GCCLibPath + "crtend.o")); in ConstructJob()
4721 CmdArgs.push_back(Args.MakeArgString(LibPath + "crtn.o")); in ConstructJob()
4723 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
4727 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4735 ArgStringList CmdArgs; in ConstructJob() local
4737 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
4740 CmdArgs.push_back("-o"); in ConstructJob()
4741 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4746 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4751 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4759 ArgStringList CmdArgs; in ConstructJob() local
4763 CmdArgs.push_back("-e"); in ConstructJob()
4764 CmdArgs.push_back("_start"); in ConstructJob()
4768 CmdArgs.push_back("-Bstatic"); in ConstructJob()
4769 CmdArgs.push_back("-dn"); in ConstructJob()
4772 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
4774 CmdArgs.push_back("-shared"); in ConstructJob()
4776 CmdArgs.push_back("--dynamic-linker"); in ConstructJob()
4777 CmdArgs.push_back("/lib/ld.so.1"); // 64Bit Path /lib/amd64/ld.so.1 in ConstructJob()
4782 CmdArgs.push_back("-o"); in ConstructJob()
4783 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4791 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4793 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4795 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4798 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4801 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4805 CmdArgs.push_back(Args.MakeArgString("-L/opt/gcc4/lib/gcc/" in ConstructJob()
4809 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
4810 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
4811 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
4813 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
4819 CmdArgs.push_back("-lgcc"); in ConstructJob()
4822 CmdArgs.push_back("-pthread"); in ConstructJob()
4824 CmdArgs.push_back("-lc"); in ConstructJob()
4825 CmdArgs.push_back("-lgcc"); in ConstructJob()
4831 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4835 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
4839 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4847 ArgStringList CmdArgs; in ConstructJob() local
4849 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
4852 CmdArgs.push_back("-o"); in ConstructJob()
4853 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4858 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4863 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4872 ArgStringList CmdArgs; in ConstructJob() local
4876 CmdArgs.push_back("-e"); in ConstructJob()
4877 CmdArgs.push_back("__start"); in ConstructJob()
4881 CmdArgs.push_back("-Bstatic"); in ConstructJob()
4884 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
4885 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
4886 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
4888 CmdArgs.push_back("-shared"); in ConstructJob()
4890 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
4891 CmdArgs.push_back("/usr/libexec/ld.so"); in ConstructJob()
4896 CmdArgs.push_back("-o"); in ConstructJob()
4897 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4906 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4909 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4911 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4914 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4922 CmdArgs.push_back(Args.MakeArgString("-L/usr/lib/gcc-lib/" + Triple + in ConstructJob()
4925 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
4926 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
4927 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
4929 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
4934 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
4936 CmdArgs.push_back("-lm_p"); in ConstructJob()
4938 CmdArgs.push_back("-lm"); in ConstructJob()
4943 CmdArgs.push_back("-lgcc"); in ConstructJob()
4946 CmdArgs.push_back("-lpthread"); in ConstructJob()
4949 CmdArgs.push_back("-lc_p"); in ConstructJob()
4951 CmdArgs.push_back("-lc"); in ConstructJob()
4953 CmdArgs.push_back("-lgcc"); in ConstructJob()
4959 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4962 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
4968 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
4976 ArgStringList CmdArgs; in ConstructJob() local
4978 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
4981 CmdArgs.push_back("-o"); in ConstructJob()
4982 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
4987 CmdArgs.push_back(II.getFilename()); in ConstructJob()
4992 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5001 ArgStringList CmdArgs; in ConstructJob() local
5005 CmdArgs.push_back("-e"); in ConstructJob()
5006 CmdArgs.push_back("__start"); in ConstructJob()
5010 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5013 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
5014 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
5015 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
5017 CmdArgs.push_back("-shared"); in ConstructJob()
5019 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
5020 CmdArgs.push_back("/usr/libexec/ld.so"); in ConstructJob()
5025 CmdArgs.push_back("-o"); in ConstructJob()
5026 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5035 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5038 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5040 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5043 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5048 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5049 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
5050 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
5052 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
5057 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
5059 CmdArgs.push_back("-lm_p"); in ConstructJob()
5061 CmdArgs.push_back("-lm"); in ConstructJob()
5065 CmdArgs.push_back("-lpthread"); in ConstructJob()
5068 CmdArgs.push_back("-lc_p"); in ConstructJob()
5070 CmdArgs.push_back("-lc"); in ConstructJob()
5089 CmdArgs.push_back(Args.MakeArgString(myarch)); in ConstructJob()
5095 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5098 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5104 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5112 ArgStringList CmdArgs; in ConstructJob() local
5117 CmdArgs.push_back("--32"); in ConstructJob()
5119 CmdArgs.push_back("-a32"); in ConstructJob()
5128 CmdArgs.push_back("-march"); in ConstructJob()
5129 CmdArgs.push_back(CPUName.data()); in ConstructJob()
5137 CmdArgs.push_back("-mabi"); in ConstructJob()
5138 CmdArgs.push_back(ABIName.data()); in ConstructJob()
5142 CmdArgs.push_back("-EB"); in ConstructJob()
5144 CmdArgs.push_back("-EL"); in ConstructJob()
5155 CmdArgs.push_back("-KPIC"); in ConstructJob()
5159 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
5162 CmdArgs.push_back("-o"); in ConstructJob()
5163 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5168 CmdArgs.push_back(II.getFilename()); in ConstructJob()
5173 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5184 ArgStringList CmdArgs; in ConstructJob() local
5195 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
5198 CmdArgs.push_back("-pie"); in ConstructJob()
5201 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5204 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
5205 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
5207 CmdArgs.push_back("-Bshareable"); in ConstructJob()
5209 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
5210 CmdArgs.push_back("/libexec/ld-elf.so.1"); in ConstructJob()
5216 CmdArgs.push_back("--hash-style=both"); in ConstructJob()
5219 CmdArgs.push_back("--enable-new-dtags"); in ConstructJob()
5225 CmdArgs.push_back("-m"); in ConstructJob()
5226 CmdArgs.push_back("elf_i386_fbsd"); in ConstructJob()
5230 CmdArgs.push_back("-m"); in ConstructJob()
5231 CmdArgs.push_back("elf32ppc_fbsd"); in ConstructJob()
5235 CmdArgs.push_back("-o"); in ConstructJob()
5236 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5253 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
5255 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
5265 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
5268 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5272 CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + *i)); in ConstructJob()
5273 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
5274 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
5275 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
5276 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
5277 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
5278 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
5280 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
5285 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
5287 CmdArgs.push_back("-lm_p"); in ConstructJob()
5289 CmdArgs.push_back("-lm"); in ConstructJob()
5294 CmdArgs.push_back("-lgcc_p"); in ConstructJob()
5296 CmdArgs.push_back("-lgcc"); in ConstructJob()
5298 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
5300 CmdArgs.push_back("-lgcc_eh_p"); in ConstructJob()
5302 CmdArgs.push_back("--as-needed"); in ConstructJob()
5303 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
5304 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
5309 CmdArgs.push_back("-lpthread_p"); in ConstructJob()
5311 CmdArgs.push_back("-lpthread"); in ConstructJob()
5316 CmdArgs.push_back("-lc"); in ConstructJob()
5318 CmdArgs.push_back("-lc_p"); in ConstructJob()
5319 CmdArgs.push_back("-lgcc_p"); in ConstructJob()
5321 CmdArgs.push_back("-lc"); in ConstructJob()
5322 CmdArgs.push_back("-lgcc"); in ConstructJob()
5326 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
5328 CmdArgs.push_back("-lgcc_eh_p"); in ConstructJob()
5330 CmdArgs.push_back("--as-needed"); in ConstructJob()
5331 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
5332 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
5339 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtendS.o"))); in ConstructJob()
5341 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
5342 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
5345 addProfileRT(ToolChain, Args, CmdArgs, ToolChain.getTriple()); in ConstructJob()
5349 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5357 ArgStringList CmdArgs; in ConstructJob() local
5362 CmdArgs.push_back("--32"); in ConstructJob()
5366 CmdArgs.push_back("-EB"); in ConstructJob()
5368 CmdArgs.push_back("-EL"); in ConstructJob()
5370 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
5373 CmdArgs.push_back("-o"); in ConstructJob()
5374 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5379 CmdArgs.push_back(II.getFilename()); in ConstructJob()
5383 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5392 ArgStringList CmdArgs; in ConstructJob() local
5395 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
5398 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5401 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
5402 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
5404 CmdArgs.push_back("-Bshareable"); in ConstructJob()
5406 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
5407 CmdArgs.push_back("/libexec/ld.elf_so"); in ConstructJob()
5414 CmdArgs.push_back("-m"); in ConstructJob()
5415 CmdArgs.push_back("elf_i386"); in ConstructJob()
5419 CmdArgs.push_back("-o"); in ConstructJob()
5420 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5428 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5430 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5432 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5435 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5437 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5442 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5443 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
5444 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
5445 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
5446 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
5447 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
5448 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
5450 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
5455 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
5456 CmdArgs.push_back("-lm"); in ConstructJob()
5461 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
5463 CmdArgs.push_back("--as-needed"); in ConstructJob()
5464 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
5465 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
5467 CmdArgs.push_back("-lgcc"); in ConstructJob()
5470 CmdArgs.push_back("-lpthread"); in ConstructJob()
5471 CmdArgs.push_back("-lc"); in ConstructJob()
5473 CmdArgs.push_back("-lgcc"); in ConstructJob()
5475 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
5477 CmdArgs.push_back("--as-needed"); in ConstructJob()
5478 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
5479 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
5486 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath( in ConstructJob()
5489 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath( in ConstructJob()
5491 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath( in ConstructJob()
5495 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
5498 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5506 ArgStringList CmdArgs; in ConstructJob() local
5511 CmdArgs.push_back("--32"); in ConstructJob()
5513 CmdArgs.push_back("--64"); in ConstructJob()
5515 CmdArgs.push_back("-a32"); in ConstructJob()
5516 CmdArgs.push_back("-mppc"); in ConstructJob()
5517 CmdArgs.push_back("-many"); in ConstructJob()
5519 CmdArgs.push_back("-a64"); in ConstructJob()
5520 CmdArgs.push_back("-mppc64"); in ConstructJob()
5521 CmdArgs.push_back("-many"); in ConstructJob()
5525 CmdArgs.push_back("-mfpu=neon"); in ConstructJob()
5529 CmdArgs.push_back(Args.MakeArgString("-mfloat-abi=" + ARMFloatABI)); in ConstructJob()
5531 Args.AddLastArg(CmdArgs, options::OPT_march_EQ); in ConstructJob()
5532 Args.AddLastArg(CmdArgs, options::OPT_mcpu_EQ); in ConstructJob()
5533 Args.AddLastArg(CmdArgs, options::OPT_mfpu_EQ); in ConstructJob()
5542 CmdArgs.push_back("-march"); in ConstructJob()
5543 CmdArgs.push_back(CPUName.data()); in ConstructJob()
5551 CmdArgs.push_back("-mabi"); in ConstructJob()
5552 CmdArgs.push_back(ABIName.data()); in ConstructJob()
5556 CmdArgs.push_back("-EB"); in ConstructJob()
5558 CmdArgs.push_back("-EL"); in ConstructJob()
5569 CmdArgs.push_back("-KPIC"); in ConstructJob()
5573 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
5576 CmdArgs.push_back("-o"); in ConstructJob()
5577 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5582 CmdArgs.push_back(II.getFilename()); in ConstructJob()
5587 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5591 ArgStringList &CmdArgs, const ArgList &Args) { in AddLibgcc() argument
5596 CmdArgs.push_back("-lgcc"); in AddLibgcc()
5600 CmdArgs.push_back("-lgcc"); in AddLibgcc()
5603 CmdArgs.push_back("--as-needed"); in AddLibgcc()
5604 CmdArgs.push_back("-lgcc_s"); in AddLibgcc()
5606 CmdArgs.push_back("--no-as-needed"); in AddLibgcc()
5610 CmdArgs.push_back("-lgcc_eh"); in AddLibgcc()
5612 CmdArgs.push_back("-lgcc"); in AddLibgcc()
5626 ArgStringList CmdArgs; in ConstructJob() local
5637 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
5640 CmdArgs.push_back("-pie"); in ConstructJob()
5643 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
5646 CmdArgs.push_back("-s"); in ConstructJob()
5651 CmdArgs.push_back(i->c_str()); in ConstructJob()
5654 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
5657 CmdArgs.push_back("-m"); in ConstructJob()
5659 CmdArgs.push_back("elf_i386"); in ConstructJob()
5662 CmdArgs.push_back("armelf_linux_eabi"); in ConstructJob()
5664 CmdArgs.push_back("elf32ppclinux"); in ConstructJob()
5666 CmdArgs.push_back("elf64ppc"); in ConstructJob()
5668 CmdArgs.push_back("elf32btsmip"); in ConstructJob()
5670 CmdArgs.push_back("elf32ltsmip"); in ConstructJob()
5672 CmdArgs.push_back("elf64btsmip"); in ConstructJob()
5674 CmdArgs.push_back("elf64ltsmip"); in ConstructJob()
5676 CmdArgs.push_back("elf_x86_64"); in ConstructJob()
5681 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5683 CmdArgs.push_back("-static"); in ConstructJob()
5685 CmdArgs.push_back("-shared"); in ConstructJob()
5688 CmdArgs.push_back("-Bsymbolic"); in ConstructJob()
5696 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
5698 CmdArgs.push_back("/system/bin/linker"); in ConstructJob()
5700 CmdArgs.push_back("/lib/ld-linux.so.2"); in ConstructJob()
5704 CmdArgs.push_back("/lib/ld-linux-armhf.so.3"); in ConstructJob()
5706 CmdArgs.push_back("/lib/ld-linux.so.3"); in ConstructJob()
5710 CmdArgs.push_back("/lib/ld.so.1"); in ConstructJob()
5713 CmdArgs.push_back("/lib64/ld.so.1"); in ConstructJob()
5715 CmdArgs.push_back("/lib/ld.so.1"); in ConstructJob()
5717 CmdArgs.push_back("/lib64/ld64.so.1"); in ConstructJob()
5719 CmdArgs.push_back("/lib64/ld-linux-x86-64.so.2"); in ConstructJob()
5722 CmdArgs.push_back("-o"); in ConstructJob()
5723 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5736 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
5738 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
5750 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
5753 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5759 CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + *i)); in ConstructJob()
5765 CmdArgs.push_back("-plugin"); in ConstructJob()
5767 CmdArgs.push_back(Args.MakeArgString(Plugin)); in ConstructJob()
5771 CmdArgs.push_back("--no-demangle"); in ConstructJob()
5773 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
5781 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5782 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
5784 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
5785 CmdArgs.push_back("-lm"); in ConstructJob()
5789 addAsanRTLinux(getToolChain(), Args, CmdArgs); in ConstructJob()
5790 addTsanRTLinux(getToolChain(), Args, CmdArgs); in ConstructJob()
5795 CmdArgs.push_back("--start-group"); in ConstructJob()
5797 AddLibgcc(ToolChain.getTriple(), D, CmdArgs, Args); in ConstructJob()
5801 CmdArgs.push_back("-lpthread"); in ConstructJob()
5803 CmdArgs.push_back("-lc"); in ConstructJob()
5806 CmdArgs.push_back("--end-group"); in ConstructJob()
5808 AddLibgcc(ToolChain.getTriple(), D, CmdArgs, Args); in ConstructJob()
5820 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()
5822 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
5826 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
5828 C.addCommand(new Command(JA, *this, ToolChain.Linker.c_str(), CmdArgs)); in ConstructJob()
5836 ArgStringList CmdArgs; in ConstructJob() local
5838 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
5841 CmdArgs.push_back("-o"); in ConstructJob()
5842 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5847 CmdArgs.push_back(II.getFilename()); in ConstructJob()
5852 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5861 ArgStringList CmdArgs; in ConstructJob() local
5864 CmdArgs.push_back("-o"); in ConstructJob()
5865 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5872 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crt1.o"))); in ConstructJob()
5873 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crti.o"))); in ConstructJob()
5874 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o"))); in ConstructJob()
5875 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o"))); in ConstructJob()
5878 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5879 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
5880 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
5882 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
5884 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
5889 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
5890 CmdArgs.push_back("-lm"); in ConstructJob()
5897 CmdArgs.push_back("-lpthread"); in ConstructJob()
5898 CmdArgs.push_back("-lc"); in ConstructJob()
5899 CmdArgs.push_back("-lCompilerRT-Generic"); in ConstructJob()
5900 CmdArgs.push_back("-L/usr/pkg/compiler-rt/lib"); in ConstructJob()
5901 CmdArgs.push_back( in ConstructJob()
5906 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5918 ArgStringList CmdArgs; in ConstructJob() local
5923 CmdArgs.push_back("--32"); in ConstructJob()
5925 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, in ConstructJob()
5928 CmdArgs.push_back("-o"); in ConstructJob()
5929 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5934 CmdArgs.push_back(II.getFilename()); in ConstructJob()
5939 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
5948 ArgStringList CmdArgs; in ConstructJob() local
5951 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
5954 CmdArgs.push_back("-Bstatic"); in ConstructJob()
5957 CmdArgs.push_back("-Bshareable"); in ConstructJob()
5959 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
5960 CmdArgs.push_back("/usr/libexec/ld-elf.so.2"); in ConstructJob()
5967 CmdArgs.push_back("-m"); in ConstructJob()
5968 CmdArgs.push_back("elf_i386"); in ConstructJob()
5972 CmdArgs.push_back("-o"); in ConstructJob()
5973 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5981 CmdArgs.push_back( in ConstructJob()
5983 CmdArgs.push_back( in ConstructJob()
5985 CmdArgs.push_back( in ConstructJob()
5988 CmdArgs.push_back( in ConstructJob()
5990 CmdArgs.push_back( in ConstructJob()
5995 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
5996 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
5997 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
5999 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
6005 CmdArgs.push_back("-L/usr/lib/gcc41"); in ConstructJob()
6008 CmdArgs.push_back("-rpath"); in ConstructJob()
6009 CmdArgs.push_back("/usr/lib/gcc41"); in ConstructJob()
6011 CmdArgs.push_back("-rpath-link"); in ConstructJob()
6012 CmdArgs.push_back("/usr/lib/gcc41"); in ConstructJob()
6014 CmdArgs.push_back("-rpath"); in ConstructJob()
6015 CmdArgs.push_back("/usr/lib"); in ConstructJob()
6017 CmdArgs.push_back("-rpath-link"); in ConstructJob()
6018 CmdArgs.push_back("/usr/lib"); in ConstructJob()
6022 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
6023 CmdArgs.push_back("-lm"); in ConstructJob()
6027 CmdArgs.push_back("-lgcc_pic"); in ConstructJob()
6029 CmdArgs.push_back("-lgcc"); in ConstructJob()
6034 CmdArgs.push_back("-lpthread"); in ConstructJob()
6037 CmdArgs.push_back("-lc"); in ConstructJob()
6041 CmdArgs.push_back("-lgcc_pic"); in ConstructJob()
6043 CmdArgs.push_back("-lgcc"); in ConstructJob()
6050 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
6053 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
6055 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
6059 addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple()); in ConstructJob()
6063 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()
6071 ArgStringList CmdArgs; in ConstructJob() local
6074 CmdArgs.push_back(Args.MakeArgString(std::string("-out:") + in ConstructJob()
6082 CmdArgs.push_back("-defaultlib:libcmt"); in ConstructJob()
6085 CmdArgs.push_back("-nologo"); in ConstructJob()
6087 Args.AddAllArgValues(CmdArgs, options::OPT_l); in ConstructJob()
6093 CmdArgs.push_back(it->getFilename()); in ConstructJob()
6098 C.addCommand(new Command(JA, *this, Exec, CmdArgs)); in ConstructJob()