Lines Matching refs:CmdArgs
181 static void addDirectoryList(const ArgList &Args, ArgStringList &CmdArgs, in addDirectoryList() argument
201 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + ".")); in addDirectoryList()
203 CmdArgs.push_back(ArgName); in addDirectoryList()
204 CmdArgs.push_back("."); in addDirectoryList()
208 CmdArgs.push_back( in addDirectoryList()
211 CmdArgs.push_back(ArgName); in addDirectoryList()
212 CmdArgs.push_back(Args.MakeArgString(Dirs.substr(0, Delim))); in addDirectoryList()
220 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + ".")); in addDirectoryList()
222 CmdArgs.push_back(ArgName); in addDirectoryList()
223 CmdArgs.push_back("."); in addDirectoryList()
227 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + Dirs)); in addDirectoryList()
229 CmdArgs.push_back(ArgName); in addDirectoryList()
230 CmdArgs.push_back(Args.MakeArgString(Dirs)); in addDirectoryList()
236 const ArgList &Args, ArgStringList &CmdArgs) { in AddLinkerInputs() argument
241 Args.AddAllArgValues(CmdArgs, options::OPT_Zlinker_input); in AddLinkerInputs()
250 CmdArgs.push_back(II.getFilename()); in AddLinkerInputs()
259 TC.AddCXXStdlibLibArgs(Args, CmdArgs); in AddLinkerInputs()
261 TC.AddCCKextLibArgs(Args, CmdArgs); in AddLinkerInputs()
265 A.render(Args, CmdArgs); in AddLinkerInputs()
267 A.renderAsInput(Args, CmdArgs); in AddLinkerInputs()
274 addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); in AddLinkerInputs()
301 ArgStringList &CmdArgs, in AddPreprocessingOptions() argument
310 Args.AddLastArg(CmdArgs, options::OPT_C); in AddPreprocessingOptions()
311 Args.AddLastArg(CmdArgs, options::OPT_CC); in AddPreprocessingOptions()
331 CmdArgs.push_back("-dependency-file"); in AddPreprocessingOptions()
332 CmdArgs.push_back(DepFile); in AddPreprocessingOptions()
352 CmdArgs.push_back("-MT"); in AddPreprocessingOptions()
355 CmdArgs.push_back(Args.MakeArgString(Quoted)); in AddPreprocessingOptions()
360 CmdArgs.push_back("-sys-header-deps"); in AddPreprocessingOptions()
364 CmdArgs.push_back("-module-file-deps"); in AddPreprocessingOptions()
371 CmdArgs.push_back("-MG"); in AddPreprocessingOptions()
374 Args.AddLastArg(CmdArgs, options::OPT_MP); in AddPreprocessingOptions()
375 Args.AddLastArg(CmdArgs, options::OPT_MV); in AddPreprocessingOptions()
382 CmdArgs.push_back("-MT"); in AddPreprocessingOptions()
385 CmdArgs.push_back(Args.MakeArgString(Quoted)); in AddPreprocessingOptions()
389 A->render(Args, CmdArgs); in AddPreprocessingOptions()
419 CmdArgs.push_back(Args.MakeArgString(Twine("-find-pch-source=") + in AddPreprocessingOptions()
457 CmdArgs.push_back("-include-pch"); in AddPreprocessingOptions()
458 CmdArgs.push_back( in AddPreprocessingOptions()
502 CmdArgs.push_back("-include-pch"); in AddPreprocessingOptions()
504 CmdArgs.push_back("-include-pth"); in AddPreprocessingOptions()
505 CmdArgs.push_back(Args.MakeArgString(P)); in AddPreprocessingOptions()
524 A->render(Args, CmdArgs); in AddPreprocessingOptions()
527 Args.AddAllArgs(CmdArgs, in AddPreprocessingOptions()
537 Args.AddAllArgValues(CmdArgs, options::OPT_Wp_COMMA, in AddPreprocessingOptions()
549 CmdArgs.push_back("-isysroot"); in AddPreprocessingOptions()
550 CmdArgs.push_back(C.getArgs().MakeArgString(sysroot)); in AddPreprocessingOptions()
559 addDirectoryList(Args, CmdArgs, "-I", "CPATH"); in AddPreprocessingOptions()
561 addDirectoryList(Args, CmdArgs, "-c-isystem", "C_INCLUDE_PATH"); in AddPreprocessingOptions()
563 addDirectoryList(Args, CmdArgs, "-cxx-isystem", "CPLUS_INCLUDE_PATH"); in AddPreprocessingOptions()
565 addDirectoryList(Args, CmdArgs, "-objc-isystem", "OBJC_INCLUDE_PATH"); in AddPreprocessingOptions()
567 addDirectoryList(Args, CmdArgs, "-objcxx-isystem", "OBJCPLUS_INCLUDE_PATH"); in AddPreprocessingOptions()
576 getToolChain().AddClangCXXStdlibIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
578 AuxToolChain->AddClangCXXStdlibIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
583 getToolChain().AddClangSystemIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
585 AuxToolChain->AddClangCXXStdlibIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
588 getToolChain().AddIAMCUIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
593 getToolChain().AddCudaIncludeArgs(Args, CmdArgs); in AddPreprocessingOptions()
1041 ArgStringList &CmdArgs, bool KernelOrKext) const { in AddARMTargetArgs() argument
1081 CmdArgs.push_back("-target-abi"); in AddARMTargetArgs()
1082 CmdArgs.push_back(ABIName); in AddARMTargetArgs()
1089 CmdArgs.push_back("-msoft-float"); in AddARMTargetArgs()
1090 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
1091 CmdArgs.push_back("soft"); in AddARMTargetArgs()
1094 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
1095 CmdArgs.push_back("soft"); in AddARMTargetArgs()
1099 CmdArgs.push_back("-mfloat-abi"); in AddARMTargetArgs()
1100 CmdArgs.push_back("hard"); in AddARMTargetArgs()
1106 CmdArgs.push_back("-backend-option"); in AddARMTargetArgs()
1108 CmdArgs.push_back("-arm-global-merge=false"); in AddARMTargetArgs()
1110 CmdArgs.push_back("-arm-global-merge=true"); in AddARMTargetArgs()
1115 CmdArgs.push_back("-no-implicit-float"); in AddARMTargetArgs()
1147 ArgStringList &CmdArgs) const { in AddAArch64TargetArgs()
1154 CmdArgs.push_back("-disable-red-zone"); in AddAArch64TargetArgs()
1158 CmdArgs.push_back("-no-implicit-float"); in AddAArch64TargetArgs()
1168 CmdArgs.push_back("-target-abi"); in AddAArch64TargetArgs()
1169 CmdArgs.push_back(ABIName); in AddAArch64TargetArgs()
1173 CmdArgs.push_back("-backend-option"); in AddAArch64TargetArgs()
1175 CmdArgs.push_back("-aarch64-fix-cortex-a53-835769=1"); in AddAArch64TargetArgs()
1177 CmdArgs.push_back("-aarch64-fix-cortex-a53-835769=0"); in AddAArch64TargetArgs()
1180 CmdArgs.push_back("-backend-option"); in AddAArch64TargetArgs()
1181 CmdArgs.push_back("-aarch64-fix-cortex-a53-835769=1"); in AddAArch64TargetArgs()
1187 CmdArgs.push_back("-backend-option"); in AddAArch64TargetArgs()
1189 CmdArgs.push_back("-aarch64-global-merge=false"); in AddAArch64TargetArgs()
1191 CmdArgs.push_back("-aarch64-global-merge=true"); in AddAArch64TargetArgs()
1436 ArgStringList &CmdArgs) const { in AddMIPSTargetArgs()
1443 CmdArgs.push_back("-target-abi"); in AddMIPSTargetArgs()
1444 CmdArgs.push_back(ABIName.data()); in AddMIPSTargetArgs()
1449 CmdArgs.push_back("-msoft-float"); in AddMIPSTargetArgs()
1450 CmdArgs.push_back("-mfloat-abi"); in AddMIPSTargetArgs()
1451 CmdArgs.push_back("soft"); in AddMIPSTargetArgs()
1455 CmdArgs.push_back("-mfloat-abi"); in AddMIPSTargetArgs()
1456 CmdArgs.push_back("hard"); in AddMIPSTargetArgs()
1461 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
1462 CmdArgs.push_back("-mxgot"); in AddMIPSTargetArgs()
1469 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
1470 CmdArgs.push_back("-mno-ldc1-sdc1"); in AddMIPSTargetArgs()
1477 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
1478 CmdArgs.push_back("-mno-check-zero-division"); in AddMIPSTargetArgs()
1484 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
1485 CmdArgs.push_back(Args.MakeArgString("-mips-ssection-threshold=" + v)); in AddMIPSTargetArgs()
1493 CmdArgs.push_back("-mllvm"); in AddMIPSTargetArgs()
1494 CmdArgs.push_back(Args.MakeArgString("-mips-compact-branches=" + Val)); in AddMIPSTargetArgs()
1620 ArgStringList &CmdArgs) const { in AddPPCTargetArgs()
1660 CmdArgs.push_back("-msoft-float"); in AddPPCTargetArgs()
1661 CmdArgs.push_back("-mfloat-abi"); in AddPPCTargetArgs()
1662 CmdArgs.push_back("soft"); in AddPPCTargetArgs()
1666 CmdArgs.push_back("-mfloat-abi"); in AddPPCTargetArgs()
1667 CmdArgs.push_back("hard"); in AddPPCTargetArgs()
1671 CmdArgs.push_back("-target-abi"); in AddPPCTargetArgs()
1672 CmdArgs.push_back(ABIName); in AddPPCTargetArgs()
1748 ArgStringList &CmdArgs) const { in AddSparcTargetArgs()
1754 CmdArgs.push_back("-msoft-float"); in AddSparcTargetArgs()
1755 CmdArgs.push_back("-mfloat-abi"); in AddSparcTargetArgs()
1756 CmdArgs.push_back("soft"); in AddSparcTargetArgs()
1760 CmdArgs.push_back("-mfloat-abi"); in AddSparcTargetArgs()
1761 CmdArgs.push_back("hard"); in AddSparcTargetArgs()
1766 ArgStringList &CmdArgs) const { in AddSystemZTargetArgs()
1768 CmdArgs.push_back("-mbackchain"); in AddSystemZTargetArgs()
1982 ArgStringList &CmdArgs, bool IsThinLTO) { in AddGoldPlugin() argument
1986 CmdArgs.push_back("-plugin"); in AddGoldPlugin()
1989 CmdArgs.push_back(Args.MakeArgString(Plugin)); in AddGoldPlugin()
1997 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU)); in AddGoldPlugin()
2009 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=O") + OOpt)); in AddGoldPlugin()
2013 CmdArgs.push_back("-plugin-opt=thinlto"); in AddGoldPlugin()
2019 CmdArgs.push_back("-plugin-opt=-debugger-tune=lldb"); in AddGoldPlugin()
2021 CmdArgs.push_back("-plugin-opt=-debugger-tune=sce"); in AddGoldPlugin()
2023 CmdArgs.push_back("-plugin-opt=-debugger-tune=gdb"); in AddGoldPlugin()
2223 ArgStringList &CmdArgs) const { in AddX86TargetArgs()
2227 CmdArgs.push_back("-disable-red-zone"); in AddX86TargetArgs()
2241 CmdArgs.push_back("-no-implicit-float"); in AddX86TargetArgs()
2246 CmdArgs.push_back("-mllvm"); in AddX86TargetArgs()
2247 CmdArgs.push_back(Args.MakeArgString("-x86-asm-syntax=" + Value)); in AddX86TargetArgs()
2256 CmdArgs.push_back("-mfloat-abi"); in AddX86TargetArgs()
2257 CmdArgs.push_back("soft"); in AddX86TargetArgs()
2258 CmdArgs.push_back("-mstack-alignment=4"); in AddX86TargetArgs()
2263 ArgStringList &CmdArgs) const { in AddHexagonTargetArgs()
2264 CmdArgs.push_back("-mqdsp6-compat"); in AddHexagonTargetArgs()
2265 CmdArgs.push_back("-Wreturn-type"); in AddHexagonTargetArgs()
2270 CmdArgs.push_back("-mllvm"); in AddHexagonTargetArgs()
2271 CmdArgs.push_back(Args.MakeArgString(Opt)); in AddHexagonTargetArgs()
2275 CmdArgs.push_back("-fshort-enums"); in AddHexagonTargetArgs()
2277 CmdArgs.push_back("-mllvm"); in AddHexagonTargetArgs()
2278 CmdArgs.push_back("-enable-hexagon-ieee-rnd-near"); in AddHexagonTargetArgs()
2280 CmdArgs.push_back("-mllvm"); in AddHexagonTargetArgs()
2281 CmdArgs.push_back("-machine-sink-split=0"); in AddHexagonTargetArgs()
2285 ArgStringList &CmdArgs) const { in AddLanaiTargetArgs()
2289 CmdArgs.push_back("-target-cpu"); in AddLanaiTargetArgs()
2290 CmdArgs.push_back(Args.MakeArgString(CPUName)); in AddLanaiTargetArgs()
2308 ArgStringList &CmdArgs) const { in AddWebAssemblyTargetArgs()
2312 CmdArgs.push_back("-fvisibility"); in AddWebAssemblyTargetArgs()
2313 CmdArgs.push_back("hidden"); in AddWebAssemblyTargetArgs()
2539 const ArgList &Args, ArgStringList &CmdArgs, in getTargetFeatures() argument
2611 CmdArgs.push_back("-target-feature"); in getTargetFeatures()
2612 CmdArgs.push_back(Name); in getTargetFeatures()
2640 ArgStringList &CmdArgs) { in addExceptionArgs() argument
2665 CmdArgs.push_back("-fobjc-exceptions"); in addExceptionArgs()
2698 CmdArgs.push_back("-fcxx-exceptions"); in addExceptionArgs()
2705 CmdArgs.push_back("-fexceptions"); in addExceptionArgs()
2787 static void RenderDebugEnablingArgs(const ArgList &Args, ArgStringList &CmdArgs, in RenderDebugEnablingArgs() argument
2793 CmdArgs.push_back("-debug-info-kind=line-tables-only"); in RenderDebugEnablingArgs()
2796 CmdArgs.push_back("-debug-info-kind=limited"); in RenderDebugEnablingArgs()
2799 CmdArgs.push_back("-debug-info-kind=standalone"); in RenderDebugEnablingArgs()
2805 CmdArgs.push_back( in RenderDebugEnablingArgs()
2809 CmdArgs.push_back("-debugger-tuning=gdb"); in RenderDebugEnablingArgs()
2812 CmdArgs.push_back("-debugger-tuning=lldb"); in RenderDebugEnablingArgs()
2815 CmdArgs.push_back("-debugger-tuning=sce"); in RenderDebugEnablingArgs()
2824 ArgStringList &CmdArgs, in CollectArgsForIntegratedAssembler() argument
2827 CmdArgs.push_back("-mrelax-all"); in CollectArgsForIntegratedAssembler()
2836 CmdArgs.push_back("-mincremental-linker-compatible"); in CollectArgsForIntegratedAssembler()
2857 CmdArgs.push_back(Value.data()); in CollectArgsForIntegratedAssembler()
2870 CmdArgs.push_back("-target-feature"); in CollectArgsForIntegratedAssembler()
2871 CmdArgs.push_back("+use-tcc-in-div"); in CollectArgsForIntegratedAssembler()
2875 CmdArgs.push_back("-target-feature"); in CollectArgsForIntegratedAssembler()
2876 CmdArgs.push_back("-use-tcc-in-div"); in CollectArgsForIntegratedAssembler()
2880 CmdArgs.push_back("-target-feature"); in CollectArgsForIntegratedAssembler()
2881 CmdArgs.push_back("+soft-float"); in CollectArgsForIntegratedAssembler()
2885 CmdArgs.push_back("-target-feature"); in CollectArgsForIntegratedAssembler()
2886 CmdArgs.push_back("-soft-float"); in CollectArgsForIntegratedAssembler()
2914 CmdArgs.push_back("-msave-temp-labels"); in CollectArgsForIntegratedAssembler()
2916 CmdArgs.push_back("-massembler-fatal-warnings"); in CollectArgsForIntegratedAssembler()
2918 CmdArgs.push_back("-mnoexecstack"); in CollectArgsForIntegratedAssembler()
2932 CmdArgs.push_back(Value.data()); in CollectArgsForIntegratedAssembler()
2941 CmdArgs.push_back(Value.data()); in CollectArgsForIntegratedAssembler()
2943 RenderDebugEnablingArgs(Args, CmdArgs, in CollectArgsForIntegratedAssembler()
2958 CmdArgs.push_back("-compress-debug-sections"); in CollectArgsForIntegratedAssembler()
2963 CmdArgs.push_back("--mrelax-relocations"); in CollectArgsForIntegratedAssembler()
2965 CmdArgs.push_back("-target-feature"); in CollectArgsForIntegratedAssembler()
2966 CmdArgs.push_back(MipsTargetFeature); in CollectArgsForIntegratedAssembler()
2974 ArgStringList &CmdArgs) { in addClangRT() argument
2975 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); in addClangRT()
3027 static void addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, in addOpenMPRuntime() argument
3035 CmdArgs.push_back("-lomp"); in addOpenMPRuntime()
3038 CmdArgs.push_back("-lgomp"); in addOpenMPRuntime()
3041 CmdArgs.push_back("-liomp5"); in addOpenMPRuntime()
3050 ArgStringList &CmdArgs, StringRef Sanitizer, in addSanitizerRuntime() argument
3054 if (IsWhole) CmdArgs.push_back("-whole-archive"); in addSanitizerRuntime()
3055 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Sanitizer, IsShared)); in addSanitizerRuntime()
3056 if (IsWhole) CmdArgs.push_back("-no-whole-archive"); in addSanitizerRuntime()
3062 ArgStringList &CmdArgs, in addSanitizerDynamicList() argument
3066 CmdArgs.push_back(Args.MakeArgString("--dynamic-list=" + SanRT + ".syms")); in addSanitizerDynamicList()
3073 ArgStringList &CmdArgs) { in linkSanitizerRuntimeDeps() argument
3076 CmdArgs.push_back("--no-as-needed"); in linkSanitizerRuntimeDeps()
3077 CmdArgs.push_back("-lpthread"); in linkSanitizerRuntimeDeps()
3078 CmdArgs.push_back("-lrt"); in linkSanitizerRuntimeDeps()
3079 CmdArgs.push_back("-lm"); in linkSanitizerRuntimeDeps()
3082 CmdArgs.push_back("-ldl"); in linkSanitizerRuntimeDeps()
3154 ArgStringList &CmdArgs) { in addSanitizerRuntimes() argument
3161 addSanitizerRuntime(TC, Args, CmdArgs, RT, true, false); in addSanitizerRuntimes()
3163 addSanitizerRuntime(TC, Args, CmdArgs, RT, false, true); in addSanitizerRuntimes()
3166 addSanitizerRuntime(TC, Args, CmdArgs, RT, false, true); in addSanitizerRuntimes()
3167 AddExportDynamic |= !addSanitizerDynamicList(TC, Args, CmdArgs, RT); in addSanitizerRuntimes()
3170 addSanitizerRuntime(TC, Args, CmdArgs, RT, false, false); in addSanitizerRuntimes()
3171 AddExportDynamic |= !addSanitizerDynamicList(TC, Args, CmdArgs, RT); in addSanitizerRuntimes()
3174 CmdArgs.push_back("-u"); in addSanitizerRuntimes()
3175 CmdArgs.push_back(Args.MakeArgString(S)); in addSanitizerRuntimes()
3180 CmdArgs.push_back("-export-dynamic"); in addSanitizerRuntimes()
3185 ArgStringList &CmdArgs) { in addXRayRuntime() argument
3188 CmdArgs.push_back("-whole-archive"); in addXRayRuntime()
3189 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "xray", false)); in addXRayRuntime()
3190 CmdArgs.push_back("-no-whole-archive"); in addXRayRuntime()
3197 ArgStringList &CmdArgs) { in linkXRayRuntimeDeps() argument
3198 CmdArgs.push_back("--no-as-needed"); in linkXRayRuntimeDeps()
3199 CmdArgs.push_back("-lpthread"); in linkXRayRuntimeDeps()
3200 CmdArgs.push_back("-lrt"); in linkXRayRuntimeDeps()
3201 CmdArgs.push_back("-lm"); in linkXRayRuntimeDeps()
3202 CmdArgs.push_back("-latomic"); in linkXRayRuntimeDeps()
3204 CmdArgs.push_back("-lc++"); in linkXRayRuntimeDeps()
3206 CmdArgs.push_back("-lstdc++"); in linkXRayRuntimeDeps()
3208 CmdArgs.push_back("-ldl"); in linkXRayRuntimeDeps()
3294 static void addDebugCompDirArg(const ArgList &Args, ArgStringList &CmdArgs) { in addDebugCompDirArg() argument
3297 CmdArgs.push_back("-fdebug-compilation-dir"); in addDebugCompDirArg()
3298 CmdArgs.push_back(Args.MakeArgString(cwd)); in addDebugCompDirArg()
3377 ArgStringList &CmdArgs) { in addDashXForInput() argument
3383 CmdArgs.push_back("-x"); in addDashXForInput()
3385 CmdArgs.push_back(types::getTypeName(types::TY_PP_ObjCXX)); in addDashXForInput()
3387 CmdArgs.push_back(types::getTypeName(Input.getType())); in addDashXForInput()
3502 ArgStringList &CmdArgs) { in addPGOAndCoverageFlags() argument
3528 CmdArgs.push_back(Args.MakeArgString(Twine("-fprofile-instrument-path=") + in addPGOAndCoverageFlags()
3534 CmdArgs.push_back( in addPGOAndCoverageFlags()
3538 CmdArgs.push_back("-fprofile-instrument=clang"); in addPGOAndCoverageFlags()
3543 CmdArgs.push_back(Args.MakeArgString( in addPGOAndCoverageFlags()
3553 CmdArgs.push_back( in addPGOAndCoverageFlags()
3560 CmdArgs.push_back("-femit-coverage-notes"); in addPGOAndCoverageFlags()
3564 CmdArgs.push_back("-femit-coverage-data"); in addPGOAndCoverageFlags()
3575 CmdArgs.push_back("-fcoverage-mapping"); in addPGOAndCoverageFlags()
3580 CmdArgs.push_back("-coverage-file"); in addPGOAndCoverageFlags()
3594 CmdArgs.push_back(Args.MakeArgString(CoverageFilename)); in addPGOAndCoverageFlags()
3600 ArgStringList &CmdArgs) { in addPS4ProfileRTArgs() argument
3613 CmdArgs.push_back("--dependent-lib=libclang_rt.profile-x86_64.a"); in addPS4ProfileRTArgs()
3767 ArgStringList &CmdArgs) { in AddAssemblerKPIC() argument
3775 CmdArgs.push_back("-KPIC"); in AddAssemblerKPIC()
3787 ArgStringList CmdArgs; in ConstructJob() local
3812 CmdArgs.push_back("-cc1"); in ConstructJob()
3815 CmdArgs.push_back("-triple"); in ConstructJob()
3816 CmdArgs.push_back(Args.MakeArgString(TripleStr)); in ConstructJob()
3831 CmdArgs.push_back("-aux-triple"); in ConstructJob()
3832 CmdArgs.push_back(Args.MakeArgString(AuxToolChain->getTriple().str())); in ConstructJob()
3848 getToolChain().addClangWarningOptions(CmdArgs); in ConstructJob()
3855 CmdArgs.push_back("-analyze"); in ConstructJob()
3857 CmdArgs.push_back("-migrate"); in ConstructJob()
3860 CmdArgs.push_back("-Eonly"); in ConstructJob()
3862 CmdArgs.push_back("-E"); in ConstructJob()
3865 CmdArgs.push_back("-P"); in ConstructJob()
3868 CmdArgs.push_back("-emit-obj"); in ConstructJob()
3870 CollectArgsForIntegratedAssembler(C, Args, CmdArgs, D); in ConstructJob()
3879 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
3881 CmdArgs.push_back("-emit-pch"); in ConstructJob()
3883 CmdArgs.push_back("-emit-pth"); in ConstructJob()
3885 CmdArgs.push_back("-verify-pch"); in ConstructJob()
3890 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
3893 CmdArgs.push_back("-emit-llvm"); in ConstructJob()
3896 CmdArgs.push_back("-emit-llvm-bc"); in ConstructJob()
3898 CmdArgs.push_back("-S"); in ConstructJob()
3900 CmdArgs.push_back("-emit-pch"); in ConstructJob()
3902 CmdArgs.push_back("-module-file-info"); in ConstructJob()
3904 CmdArgs.push_back("-rewrite-objc"); in ConstructJob()
3907 CmdArgs.push_back("-rewrite-objc"); in ConstructJob()
3918 CmdArgs.push_back("-emit-llvm-uselists"); in ConstructJob()
3921 Args.AddLastArg(CmdArgs, options::OPT_flto, options::OPT_flto_EQ); in ConstructJob()
3928 Args.AddLastArg(CmdArgs, options::OPT_fthinlto_index_EQ); in ConstructJob()
3935 Args.AddLastArg(CmdArgs, options::OPT_fembed_bitcode_EQ); in ConstructJob()
3937 CmdArgs.push_back("-disable-llvm-optzns"); in ConstructJob()
3940 CmdArgs.push_back("-fembed-bitcode=marker"); in ConstructJob()
3946 CmdArgs.push_back("-disable-free"); in ConstructJob()
3950 CmdArgs.push_back("-disable-llvm-verifier"); in ConstructJob()
3952 CmdArgs.push_back("-discard-value-names"); in ConstructJob()
3957 CmdArgs.push_back("-main-file-name"); in ConstructJob()
3958 CmdArgs.push_back(getBaseInputName(Args, Input)); in ConstructJob()
3963 CmdArgs.push_back("-static-define"); in ConstructJob()
3967 CmdArgs.push_back("-analyzer-store=region"); in ConstructJob()
3970 CmdArgs.push_back("-analyzer-opt-analyze-nested-blocks"); in ConstructJob()
3972 CmdArgs.push_back("-analyzer-eagerly-assume"); in ConstructJob()
3976 CmdArgs.push_back("-analyzer-checker=core"); in ConstructJob()
3979 CmdArgs.push_back("-analyzer-checker=unix"); in ConstructJob()
3982 CmdArgs.push_back("-analyzer-checker=unix.API"); in ConstructJob()
3983 CmdArgs.push_back("-analyzer-checker=unix.Malloc"); in ConstructJob()
3984 CmdArgs.push_back("-analyzer-checker=unix.MallocSizeof"); in ConstructJob()
3985 CmdArgs.push_back("-analyzer-checker=unix.MismatchedDeallocator"); in ConstructJob()
3986 CmdArgs.push_back("-analyzer-checker=unix.cstring.BadSizeArg"); in ConstructJob()
3987 CmdArgs.push_back("-analyzer-checker=unix.cstring.NullArg"); in ConstructJob()
3992 CmdArgs.push_back("-analyzer-disable-checker=unix.API"); in ConstructJob()
3993 CmdArgs.push_back("-analyzer-disable-checker=unix.Vfork"); in ConstructJob()
3997 CmdArgs.push_back("-analyzer-checker=osx"); in ConstructJob()
3999 CmdArgs.push_back("-analyzer-checker=deadcode"); in ConstructJob()
4002 CmdArgs.push_back("-analyzer-checker=cplusplus"); in ConstructJob()
4005 CmdArgs.push_back( in ConstructJob()
4007 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.getpw"); in ConstructJob()
4008 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.gets"); in ConstructJob()
4009 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mktemp"); in ConstructJob()
4010 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mkstemp"); in ConstructJob()
4011 CmdArgs.push_back("-analyzer-checker=security.insecureAPI.vfork"); in ConstructJob()
4015 CmdArgs.push_back("-analyzer-checker=nullability.NullPassedToNonnull"); in ConstructJob()
4016 CmdArgs.push_back( in ConstructJob()
4022 CmdArgs.push_back("-analyzer-output"); in ConstructJob()
4024 CmdArgs.push_back(A->getValue()); in ConstructJob()
4026 CmdArgs.push_back("plist"); in ConstructJob()
4031 CmdArgs.push_back("-w"); in ConstructJob()
4034 Args.AddAllArgValues(CmdArgs, options::OPT_Xanalyzer); in ConstructJob()
4047 CmdArgs.push_back("-mrelocation-model"); in ConstructJob()
4048 CmdArgs.push_back(RMName); in ConstructJob()
4051 CmdArgs.push_back("-pic-level"); in ConstructJob()
4052 CmdArgs.push_back(PICLevel == 1 ? "1" : "2"); in ConstructJob()
4054 CmdArgs.push_back("-pic-is-pie"); in ConstructJob()
4058 CmdArgs.push_back("-meabi"); in ConstructJob()
4059 CmdArgs.push_back(A->getValue()); in ConstructJob()
4062 CmdArgs.push_back("-mthread-model"); in ConstructJob()
4064 CmdArgs.push_back(A->getValue()); in ConstructJob()
4066 CmdArgs.push_back(Args.MakeArgString(getToolChain().getThreadModel())); in ConstructJob()
4068 Args.AddLastArg(CmdArgs, options::OPT_fveclib); in ConstructJob()
4072 CmdArgs.push_back("-fno-merge-all-constants"); in ConstructJob()
4080 CmdArgs.push_back("-frewrite-map-file"); in ConstructJob()
4081 CmdArgs.push_back(A->getValue()); in ConstructJob()
4088 CmdArgs.push_back("-mllvm"); in ConstructJob()
4089 CmdArgs.push_back(Args.MakeArgString("-warn-stack-size=" + v)); in ConstructJob()
4095 CmdArgs.push_back("-fno-jump-tables"); in ConstructJob()
4098 CmdArgs.push_back("-mregparm"); in ConstructJob()
4099 CmdArgs.push_back(A->getValue()); in ConstructJob()
4108 CmdArgs.push_back("-fpcc-struct-return"); in ConstructJob()
4111 CmdArgs.push_back("-freg-struct-return"); in ConstructJob()
4116 CmdArgs.push_back("-fdefault-calling-conv=stdcall"); in ConstructJob()
4119 CmdArgs.push_back("-mdisable-fp-elim"); in ConstructJob()
4122 CmdArgs.push_back("-mno-zero-initialized-in-bss"); in ConstructJob()
4134 CmdArgs.push_back("-relaxed-aliasing"); in ConstructJob()
4137 CmdArgs.push_back("-no-struct-path-tbaa"); in ConstructJob()
4140 CmdArgs.push_back("-fstrict-enums"); in ConstructJob()
4144 CmdArgs.push_back("-fstrict-vtable-pointers"); in ConstructJob()
4147 CmdArgs.push_back("-mdisable-tail-calls"); in ConstructJob()
4151 CmdArgs.push_back("-split-stacks"); in ConstructJob()
4171 CmdArgs.push_back("-menable-no-infs"); in ConstructJob()
4180 CmdArgs.push_back("-menable-no-nans"); in ConstructJob()
4199 CmdArgs.push_back("-fmath-errno"); in ConstructJob()
4247 CmdArgs.push_back("-menable-unsafe-fp-math"); in ConstructJob()
4250 CmdArgs.push_back("-fno-signed-zeros"); in ConstructJob()
4253 CmdArgs.push_back("-freciprocal-math"); in ConstructJob()
4262 CmdArgs.push_back(Args.MakeArgString("-ffp-contract=" + Val)); in ConstructJob()
4270 CmdArgs.push_back(Args.MakeArgString("-ffp-contract=fast")); in ConstructJob()
4274 ParseMRecip(getToolChain().getDriver(), Args, CmdArgs); in ConstructJob()
4284 CmdArgs.push_back("-ffast-math"); in ConstructJob()
4288 CmdArgs.push_back("-ffinite-math-only"); in ConstructJob()
4297 CmdArgs.push_back("-masm-verbose"); in ConstructJob()
4301 CmdArgs.push_back("-no-integrated-as"); in ConstructJob()
4304 CmdArgs.push_back("-mdebug-pass"); in ConstructJob()
4305 CmdArgs.push_back("Structure"); in ConstructJob()
4308 CmdArgs.push_back("-mdebug-pass"); in ConstructJob()
4309 CmdArgs.push_back("Arguments"); in ConstructJob()
4317 CmdArgs.push_back("-mconstructor-aliases"); in ConstructJob()
4322 CmdArgs.push_back("-fforbid-guard-variables"); in ConstructJob()
4326 CmdArgs.push_back("-mms-bitfields"); in ConstructJob()
4340 CmdArgs.push_back("-munwind-tables"); in ConstructJob()
4342 getToolChain().addClangTargetOptions(Args, CmdArgs); in ConstructJob()
4345 CmdArgs.push_back("-mlimit-float-precision"); in ConstructJob()
4346 CmdArgs.push_back(A->getValue()); in ConstructJob()
4353 CmdArgs.push_back("-mcode-model"); in ConstructJob()
4354 CmdArgs.push_back(A->getValue()); in ConstructJob()
4360 CmdArgs.push_back("-target-cpu"); in ConstructJob()
4361 CmdArgs.push_back(Args.MakeArgString(CPU)); in ConstructJob()
4365 CmdArgs.push_back("-mfpmath"); in ConstructJob()
4366 CmdArgs.push_back(A->getValue()); in ConstructJob()
4370 getTargetFeatures(getToolChain(), Triple, Args, CmdArgs, false); in ConstructJob()
4382 AddARMTargetArgs(Triple, Args, CmdArgs, KernelOrKext); in ConstructJob()
4387 AddAArch64TargetArgs(Args, CmdArgs); in ConstructJob()
4394 AddMIPSTargetArgs(Args, CmdArgs); in ConstructJob()
4400 AddPPCTargetArgs(Args, CmdArgs); in ConstructJob()
4406 AddSparcTargetArgs(Args, CmdArgs); in ConstructJob()
4410 AddSystemZTargetArgs(Args, CmdArgs); in ConstructJob()
4415 AddX86TargetArgs(Args, CmdArgs); in ConstructJob()
4419 AddLanaiTargetArgs(Args, CmdArgs); in ConstructJob()
4423 AddHexagonTargetArgs(Args, CmdArgs); in ConstructJob()
4428 AddWebAssemblyTargetArgs(Args, CmdArgs); in ConstructJob()
4450 AddClangCLArgs(Args, InputType, CmdArgs, &DebugInfoKind, &EmitCodeView); in ConstructJob()
4454 CmdArgs.push_back("-target-linker-version"); in ConstructJob()
4455 CmdArgs.push_back(A->getValue()); in ConstructJob()
4459 CmdArgs.push_back("-momit-leaf-frame-pointer"); in ConstructJob()
4474 Args.AddAllArgs(CmdArgs, options::OPT_v); in ConstructJob()
4475 Args.AddLastArg(CmdArgs, options::OPT_H); in ConstructJob()
4477 CmdArgs.push_back("-header-include-file"); in ConstructJob()
4478 CmdArgs.push_back(D.CCPrintHeadersFilename ? D.CCPrintHeadersFilename in ConstructJob()
4481 Args.AddLastArg(CmdArgs, options::OPT_P); in ConstructJob()
4482 Args.AddLastArg(CmdArgs, options::OPT_print_ivar_layout); in ConstructJob()
4485 CmdArgs.push_back("-diagnostic-log-file"); in ConstructJob()
4486 CmdArgs.push_back(D.CCLogDiagnosticsFilename ? D.CCLogDiagnosticsFilename in ConstructJob()
4527 CmdArgs.push_back("-gcodeview"); in ConstructJob()
4539 CmdArgs.push_back("-dwarf-column-info"); in ConstructJob()
4544 CmdArgs.push_back("-dwarf-ext-refs"); in ConstructJob()
4545 CmdArgs.push_back("-fmodule-format=obj"); in ConstructJob()
4553 CmdArgs.push_back("-backend-option"); in ConstructJob()
4554 CmdArgs.push_back("-split-dwarf=Enable"); in ConstructJob()
4567 RenderDebugEnablingArgs(Args, CmdArgs, DebugInfoKind, DwarfVersion, in ConstructJob()
4572 CmdArgs.push_back("-backend-option"); in ConstructJob()
4573 CmdArgs.push_back("-generate-gnu-dwarf-pub-sections"); in ConstructJob()
4580 CmdArgs.push_back("-backend-option"); in ConstructJob()
4581 CmdArgs.push_back("-generate-arange-section"); in ConstructJob()
4586 CmdArgs.push_back("-backend-option"); in ConstructJob()
4587 CmdArgs.push_back("-generate-type-units"); in ConstructJob()
4598 CmdArgs.push_back("-ffunction-sections"); in ConstructJob()
4603 CmdArgs.push_back("-fdata-sections"); in ConstructJob()
4608 CmdArgs.push_back("-fno-unique-section-names"); in ConstructJob()
4610 Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions); in ConstructJob()
4614 CmdArgs.push_back("-fxray-instrument"); in ConstructJob()
4617 CmdArgs.push_back("-fxray-instruction-threshold"); in ConstructJob()
4618 CmdArgs.push_back(A->getValue()); in ConstructJob()
4624 CmdArgs.push_back("-fxray-instrument"); in ConstructJob()
4628 CmdArgs.push_back("-fxray-instruction-threshold"); in ConstructJob()
4629 CmdArgs.push_back(A->getValue()); in ConstructJob()
4633 addPGOAndCoverageFlags(C, D, Output, Args, CmdArgs); in ConstructJob()
4637 addPS4ProfileRTArgs(getToolChain(), Args, CmdArgs); in ConstructJob()
4641 CmdArgs.push_back("-nostdsysteminc"); in ConstructJob()
4642 CmdArgs.push_back("-nobuiltininc"); in ConstructJob()
4645 CmdArgs.push_back("-nostdsysteminc"); in ConstructJob()
4646 Args.AddLastArg(CmdArgs, options::OPT_nostdincxx); in ConstructJob()
4647 Args.AddLastArg(CmdArgs, options::OPT_nobuiltininc); in ConstructJob()
4651 CmdArgs.push_back("-resource-dir"); in ConstructJob()
4652 CmdArgs.push_back(D.ResourceDir.c_str()); in ConstructJob()
4654 Args.AddLastArg(CmdArgs, options::OPT_working_directory); in ConstructJob()
4666 CmdArgs.push_back("-arcmt-check"); in ConstructJob()
4669 CmdArgs.push_back("-arcmt-modify"); in ConstructJob()
4672 CmdArgs.push_back("-arcmt-migrate"); in ConstructJob()
4673 CmdArgs.push_back("-mt-migrate-directory"); in ConstructJob()
4674 CmdArgs.push_back(A->getValue()); in ConstructJob()
4676 Args.AddLastArg(CmdArgs, options::OPT_arcmt_migrate_report_output); in ConstructJob()
4677 Args.AddLastArg(CmdArgs, options::OPT_arcmt_migrate_emit_arc_errors); in ConstructJob()
4692 CmdArgs.push_back("-mt-migrate-directory"); in ConstructJob()
4693 CmdArgs.push_back(A->getValue()); in ConstructJob()
4699 CmdArgs.push_back("-objcmt-migrate-literals"); in ConstructJob()
4700 CmdArgs.push_back("-objcmt-migrate-subscripting"); in ConstructJob()
4701 CmdArgs.push_back("-objcmt-migrate-property"); in ConstructJob()
4703 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_literals); in ConstructJob()
4704 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_subscripting); in ConstructJob()
4705 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_property); in ConstructJob()
4708 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_literals); in ConstructJob()
4709 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_subscripting); in ConstructJob()
4710 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_property); in ConstructJob()
4711 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_all); in ConstructJob()
4712 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_readonly_property); in ConstructJob()
4713 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_readwrite_property); in ConstructJob()
4714 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_property_dot_syntax); in ConstructJob()
4715 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_annotation); in ConstructJob()
4716 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_instancetype); in ConstructJob()
4717 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_nsmacros); in ConstructJob()
4718 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_protocol_conformance); in ConstructJob()
4719 Args.AddLastArg(CmdArgs, options::OPT_objcmt_atomic_property); in ConstructJob()
4720 Args.AddLastArg(CmdArgs, options::OPT_objcmt_returns_innerpointer_property); in ConstructJob()
4721 Args.AddLastArg(CmdArgs, options::OPT_objcmt_ns_nonatomic_iosonly); in ConstructJob()
4722 Args.AddLastArg(CmdArgs, options::OPT_objcmt_migrate_designated_init); in ConstructJob()
4723 Args.AddLastArg(CmdArgs, options::OPT_objcmt_whitelist_dir_path); in ConstructJob()
4731 AddPreprocessingOptions(C, JA, D, Args, CmdArgs, Output, Inputs, in ConstructJob()
4743 CmdArgs.push_back("-O3"); in ConstructJob()
4746 A->render(Args, CmdArgs); in ConstructJob()
4759 Args.AddAllArgs(CmdArgs, options::OPT_R_Group); in ConstructJob()
4760 Args.AddAllArgs(CmdArgs, options::OPT_W_Group); in ConstructJob()
4762 CmdArgs.push_back("-pedantic"); in ConstructJob()
4763 Args.AddLastArg(CmdArgs, options::OPT_pedantic_errors); in ConstructJob()
4764 Args.AddLastArg(CmdArgs, options::OPT_w); in ConstructJob()
4775 CmdArgs.push_back("-std=c++98"); in ConstructJob()
4777 CmdArgs.push_back("-std=c89"); in ConstructJob()
4779 Std->render(Args, CmdArgs); in ConstructJob()
4786 A->render(Args, CmdArgs); in ConstructJob()
4795 Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ, "-std=", in ConstructJob()
4800 Args.AddLastArg(CmdArgs, options::OPT_ftrigraphs, in ConstructJob()
4821 CmdArgs.push_back("-fconst-strings"); in ConstructJob()
4830 CmdArgs.push_back("-fdeprecated-macro"); in ConstructJob()
4836 CmdArgs.push_back("-fgnu-keywords"); in ConstructJob()
4838 CmdArgs.push_back("-fno-gnu-keywords"); in ConstructJob()
4842 CmdArgs.push_back("-fno-dwarf-directory-asm"); in ConstructJob()
4845 CmdArgs.push_back("-fno-autolink"); in ConstructJob()
4848 addDebugCompDirArg(Args, CmdArgs); in ConstructJob()
4855 CmdArgs.push_back(Args.MakeArgString("-fdebug-prefix-map=" + Map)); in ConstructJob()
4861 CmdArgs.push_back("-ftemplate-depth"); in ConstructJob()
4862 CmdArgs.push_back(A->getValue()); in ConstructJob()
4866 CmdArgs.push_back("-foperator-arrow-depth"); in ConstructJob()
4867 CmdArgs.push_back(A->getValue()); in ConstructJob()
4871 CmdArgs.push_back("-fconstexpr-depth"); in ConstructJob()
4872 CmdArgs.push_back(A->getValue()); in ConstructJob()
4876 CmdArgs.push_back("-fconstexpr-steps"); in ConstructJob()
4877 CmdArgs.push_back(A->getValue()); in ConstructJob()
4881 CmdArgs.push_back("-fbracket-depth"); in ConstructJob()
4882 CmdArgs.push_back(A->getValue()); in ConstructJob()
4889 CmdArgs.push_back(Args.MakeArgString("-Wlarge-by-value-copy=" + bytes)); in ConstructJob()
4891 CmdArgs.push_back("-Wlarge-by-value-copy=64"); // default value in ConstructJob()
4895 CmdArgs.push_back("-relocatable-pch"); in ConstructJob()
4898 CmdArgs.push_back("-fconstant-string-class"); in ConstructJob()
4899 CmdArgs.push_back(A->getValue()); in ConstructJob()
4903 CmdArgs.push_back("-ftabstop"); in ConstructJob()
4904 CmdArgs.push_back(A->getValue()); in ConstructJob()
4907 CmdArgs.push_back("-ferror-limit"); in ConstructJob()
4909 CmdArgs.push_back(A->getValue()); in ConstructJob()
4911 CmdArgs.push_back("19"); in ConstructJob()
4914 CmdArgs.push_back("-fmacro-backtrace-limit"); in ConstructJob()
4915 CmdArgs.push_back(A->getValue()); in ConstructJob()
4919 CmdArgs.push_back("-ftemplate-backtrace-limit"); in ConstructJob()
4920 CmdArgs.push_back(A->getValue()); in ConstructJob()
4924 CmdArgs.push_back("-fconstexpr-backtrace-limit"); in ConstructJob()
4925 CmdArgs.push_back(A->getValue()); in ConstructJob()
4929 CmdArgs.push_back("-fspell-checking-limit"); in ConstructJob()
4930 CmdArgs.push_back(A->getValue()); in ConstructJob()
4934 CmdArgs.push_back("-fmessage-length"); in ConstructJob()
4936 CmdArgs.push_back(A->getValue()); in ConstructJob()
4941 CmdArgs.push_back(Args.MakeArgString(Twine(N))); in ConstructJob()
4948 CmdArgs.push_back("-fvisibility"); in ConstructJob()
4949 CmdArgs.push_back(A->getValue()); in ConstructJob()
4952 CmdArgs.push_back("-fvisibility"); in ConstructJob()
4953 CmdArgs.push_back("hidden"); in ConstructJob()
4954 CmdArgs.push_back("-ftype-visibility"); in ConstructJob()
4955 CmdArgs.push_back("default"); in ConstructJob()
4959 Args.AddLastArg(CmdArgs, options::OPT_fvisibility_inlines_hidden); in ConstructJob()
4961 Args.AddLastArg(CmdArgs, options::OPT_ftlsmodel_EQ); in ConstructJob()
4966 CmdArgs.push_back("-ffreestanding"); in ConstructJob()
4969 Args.AddLastArg(CmdArgs, options::OPT_femit_all_decls); in ConstructJob()
4970 Args.AddLastArg(CmdArgs, options::OPT_fheinous_gnu_extensions); in ConstructJob()
4971 Args.AddLastArg(CmdArgs, options::OPT_fno_operator_names); in ConstructJob()
4977 CmdArgs.push_back("-femulated-tls"); in ConstructJob()
4980 Args.AddLastArg(CmdArgs, options::OPT_faltivec); in ConstructJob()
4981 Args.AddLastArg(CmdArgs, options::OPT_fzvector); in ConstructJob()
4983 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_show_template_tree); in ConstructJob()
4984 Args.AddLastArg(CmdArgs, options::OPT_fno_elide_type); in ConstructJob()
4993 CmdArgs.push_back("-fopenmp"); in ConstructJob()
5000 CmdArgs.push_back("-fnoopenmp-use-tls"); in ConstructJob()
5001 Args.AddAllArgs(CmdArgs, options::OPT_fopenmp_version_EQ); in ConstructJob()
5015 Sanitize.addArgs(getToolChain(), Args, CmdArgs, InputType); in ConstructJob()
5033 Args.AddLastArg(CmdArgs, options::OPT_pg); in ConstructJob()
5038 CmdArgs.push_back("-fno-lax-vector-conversions"); in ConstructJob()
5042 CmdArgs.push_back("-fapple-kext"); in ConstructJob()
5044 Args.AddLastArg(CmdArgs, options::OPT_fobjc_sender_dependent_dispatch); in ConstructJob()
5045 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_print_source_range_info); in ConstructJob()
5046 Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_parseable_fixits); in ConstructJob()
5047 Args.AddLastArg(CmdArgs, options::OPT_ftime_report); in ConstructJob()
5048 Args.AddLastArg(CmdArgs, options::OPT_ftrapv); in ConstructJob()
5051 CmdArgs.push_back("-ftrapv-handler"); in ConstructJob()
5052 CmdArgs.push_back(A->getValue()); in ConstructJob()
5055 Args.AddLastArg(CmdArgs, options::OPT_ftrap_function_EQ); in ConstructJob()
5061 CmdArgs.push_back("-fwrapv"); in ConstructJob()
5065 CmdArgs.push_back("-fwrapv"); in ConstructJob()
5071 CmdArgs.push_back("-freroll-loops"); in ConstructJob()
5073 Args.AddLastArg(CmdArgs, options::OPT_fwritable_strings); in ConstructJob()
5074 Args.AddLastArg(CmdArgs, options::OPT_funroll_loops, in ConstructJob()
5077 Args.AddLastArg(CmdArgs, options::OPT_pthread); in ConstructJob()
5098 CmdArgs.push_back("-stack-protector"); in ConstructJob()
5099 CmdArgs.push_back(Args.MakeArgString(Twine(StackProtectorLevel))); in ConstructJob()
5107 CmdArgs.push_back("-stack-protector-buffer-size"); in ConstructJob()
5109 CmdArgs.push_back(Args.MakeArgString(Str.drop_front(16))); in ConstructJob()
5118 CmdArgs.push_back(Args.MakeArgString("-mstackrealign")); in ConstructJob()
5122 CmdArgs.push_back(Args.MakeArgString("-mstack-alignment=" + alignment)); in ConstructJob()
5129 CmdArgs.push_back(Args.MakeArgString("-mstack-probe-size=" + Size)); in ConstructJob()
5131 CmdArgs.push_back("-mstack-probe-size=0"); in ConstructJob()
5141 CmdArgs.push_back("-fallow-half-arguments-and-returns"); in ConstructJob()
5151 CmdArgs.push_back("-backend-option"); in ConstructJob()
5152 CmdArgs.push_back("-arm-restrict-it"); in ConstructJob()
5154 CmdArgs.push_back("-backend-option"); in ConstructJob()
5155 CmdArgs.push_back("-arm-no-restrict-it"); in ConstructJob()
5161 CmdArgs.push_back("-backend-option"); in ConstructJob()
5162 CmdArgs.push_back("-arm-restrict-it"); in ConstructJob()
5167 CmdArgs.push_back("-cl-opt-disable"); in ConstructJob()
5170 CmdArgs.push_back("-cl-strict-aliasing"); in ConstructJob()
5173 CmdArgs.push_back("-cl-single-precision-constant"); in ConstructJob()
5176 CmdArgs.push_back("-cl-finite-math-only"); in ConstructJob()
5179 CmdArgs.push_back("-cl-kernel-arg-info"); in ConstructJob()
5182 CmdArgs.push_back("-cl-unsafe-math-optimizations"); in ConstructJob()
5185 CmdArgs.push_back("-cl-fast-relaxed-math"); in ConstructJob()
5188 CmdArgs.push_back("-cl-mad-enable"); in ConstructJob()
5191 CmdArgs.push_back("-cl-no-signed-zeros"); in ConstructJob()
5196 CmdArgs.push_back(Args.MakeArgString(CLStdStr)); in ConstructJob()
5199 CmdArgs.push_back("-cl-denorms-are-zero"); in ConstructJob()
5209 A->render(Args, CmdArgs); in ConstructJob()
5217 CmdArgs.push_back("-fno-builtin"); in ConstructJob()
5236 CmdArgs.push_back(Args.MakeArgString("-fno-builtin-" + FuncName)); in ConstructJob()
5241 CmdArgs.push_back("-fno-assume-sane-operator-new"); in ConstructJob()
5249 CmdArgs.push_back("-fblocks"); in ConstructJob()
5253 CmdArgs.push_back("-fblocks-runtime-optional"); in ConstructJob()
5264 CmdArgs.push_back("-fmodules"); in ConstructJob()
5273 CmdArgs.push_back("-fimplicit-module-maps"); in ConstructJob()
5280 CmdArgs.push_back("-fmodules-decluse"); in ConstructJob()
5287 CmdArgs.push_back("-fmodules-strict-decluse"); in ConstructJob()
5293 CmdArgs.push_back("-fno-implicit-modules"); in ConstructJob()
5315 CmdArgs.push_back(Args.MakeArgString(Path)); in ConstructJob()
5320 Args.AddLastArg(CmdArgs, options::OPT_fmodule_name_EQ); in ConstructJob()
5324 Args.AddAllArgs(CmdArgs, options::OPT_fmodule_map_file); in ConstructJob()
5328 Args.AddAllArgs(CmdArgs, options::OPT_fmodule_file); in ConstructJob()
5341 CmdArgs.push_back("-module-dependency-dir"); in ConstructJob()
5342 CmdArgs.push_back(Args.MakeArgString(VFSDir)); in ConstructJob()
5346 Args.AddLastArg(CmdArgs, options::OPT_fmodules_user_build_path); in ConstructJob()
5349 Args.AddAllArgs(CmdArgs, options::OPT_fmodules_ignore_macro); in ConstructJob()
5350 Args.AddLastArg(CmdArgs, options::OPT_fmodules_prune_interval); in ConstructJob()
5351 Args.AddLastArg(CmdArgs, options::OPT_fmodules_prune_after); in ConstructJob()
5353 Args.AddLastArg(CmdArgs, options::OPT_fbuild_session_timestamp); in ConstructJob()
5363 CmdArgs.push_back(Args.MakeArgString( in ConstructJob()
5373 Args.AddLastArg(CmdArgs, in ConstructJob()
5377 Args.AddLastArg(CmdArgs, options::OPT_fmodules_validate_system_headers); in ConstructJob()
5382 CmdArgs.push_back("-fno-access-control"); in ConstructJob()
5387 CmdArgs.push_back("-fno-elide-constructors"); in ConstructJob()
5394 CmdArgs.push_back("-fno-rtti"); in ConstructJob()
5399 CmdArgs.push_back("-fshort-enums"); in ConstructJob()
5407 CmdArgs.push_back("-fno-signed-char"); in ConstructJob()
5410 CmdArgs.push_back("-fno-signed-char"); in ConstructJob()
5424 CmdArgs.push_back("-fno-use-cxa-atexit"); in ConstructJob()
5429 CmdArgs.push_back("-fms-extensions"); in ConstructJob()
5434 CmdArgs.push_back("-fuse-line-directives"); in ConstructJob()
5442 CmdArgs.push_back("-fms-compatibility"); in ConstructJob()
5448 CmdArgs.push_back( in ConstructJob()
5471 CmdArgs.push_back(LanguageStandard.data()); in ConstructJob()
5477 CmdArgs.push_back("-fborland-extensions"); in ConstructJob()
5482 CmdArgs.push_back("-fdeclspec"); in ConstructJob()
5484 CmdArgs.push_back("-fno-declspec"); // Explicitly disabling __declspec. in ConstructJob()
5491 CmdArgs.push_back("-fno-threadsafe-statics"); in ConstructJob()
5497 CmdArgs.push_back("-fdelayed-template-parsing"); in ConstructJob()
5503 A->render(Args, CmdArgs); in ConstructJob()
5507 CmdArgs.push_back("-fgnu89-inline"); in ConstructJob()
5510 CmdArgs.push_back("-fno-inline"); in ConstructJob()
5515 InlineArg->render(Args, CmdArgs); in ConstructJob()
5517 ObjCRuntime objcRuntime = AddObjCRuntimeArgs(Args, CmdArgs, rewriteKind); in ConstructJob()
5529 CmdArgs.push_back("-fobjc-dispatch-method=mixed"); in ConstructJob()
5531 CmdArgs.push_back("-fobjc-dispatch-method=non-legacy"); in ConstructJob()
5543 CmdArgs.push_back("-fobjc-subscripting-legacy-runtime"); in ConstructJob()
5547 CmdArgs.push_back("-fencode-extended-block-signature"); in ConstructJob()
5556 CmdArgs.push_back("-fobjc-arc"); in ConstructJob()
5563 CmdArgs.push_back("-fobjc-arc-cxxlib=libc++"); in ConstructJob()
5565 CmdArgs.push_back("-fobjc-arc-cxxlib=libstdc++"); in ConstructJob()
5573 CmdArgs.push_back("-fobjc-arc-exceptions"); in ConstructJob()
5580 CmdArgs.push_back("-fno-objc-infer-related-result-type"); in ConstructJob()
5591 GCArg->render(Args, CmdArgs); in ConstructJob()
5611 WeakArg->render(Args, CmdArgs); in ConstructJob()
5617 CmdArgs.push_back("-fapplication-extension"); in ConstructJob()
5622 CmdArgs); in ConstructJob()
5626 CmdArgs.push_back("-fsjlj-exceptions"); in ConstructJob()
5631 CmdArgs.push_back("-fno-assume-sane-operator-new"); in ConstructJob()
5637 CmdArgs.push_back("-fsized-deallocation"); in ConstructJob()
5645 CmdArgs.push_back("-fno-constant-cfstrings"); in ConstructJob()
5651 A->render(Args, CmdArgs); in ConstructJob()
5656 CmdArgs.push_back("-fpascal-strings"); in ConstructJob()
5663 CmdArgs.push_back(Args.MakeArgString(PackStructStr)); in ConstructJob()
5666 CmdArgs.push_back("-fpack-struct=1"); in ConstructJob()
5675 CmdArgs.push_back(Args.MakeArgString(MaxTypeAlignStr)); in ConstructJob()
5680 CmdArgs.push_back(Args.MakeArgString(MaxTypeAlignStr)); in ConstructJob()
5689 CmdArgs.push_back("-fno-common"); in ConstructJob()
5722 CmdArgs.push_back("-fno-caret-diagnostics"); in ConstructJob()
5727 CmdArgs.push_back("-fno-diagnostics-fixit-info"); in ConstructJob()
5732 CmdArgs.push_back("-fdiagnostics-show-option"); in ConstructJob()
5736 CmdArgs.push_back("-fdiagnostics-show-category"); in ConstructJob()
5737 CmdArgs.push_back(A->getValue()); in ConstructJob()
5741 CmdArgs.push_back("-fdiagnostics-format"); in ConstructJob()
5742 CmdArgs.push_back(A->getValue()); in ConstructJob()
5750 CmdArgs.push_back("-fdiagnostics-show-note-include-stack"); in ConstructJob()
5752 CmdArgs.push_back("-fno-diagnostics-show-note-include-stack"); in ConstructJob()
5776 CmdArgs.push_back("-fcolor-diagnostics"); in ConstructJob()
5779 CmdArgs.push_back("-fansi-escape-codes"); in ConstructJob()
5783 CmdArgs.push_back("-fno-show-source-location"); in ConstructJob()
5787 CmdArgs.push_back("-fno-show-column"); in ConstructJob()
5791 CmdArgs.push_back("-fno-spell-checking"); in ConstructJob()
5796 CmdArgs.push_back("-fasm-blocks"); in ConstructJob()
5801 CmdArgs.push_back("-fno-gnu-inline-asm"); in ConstructJob()
5811 CmdArgs.push_back("-vectorize-loops"); in ConstructJob()
5819 CmdArgs.push_back("-vectorize-slp"); in ConstructJob()
5824 CmdArgs.push_back("-vectorize-slp-aggressive"); in ConstructJob()
5827 A->render(Args, CmdArgs); in ConstructJob()
5831 A->render(Args, CmdArgs); in ConstructJob()
5838 CmdArgs.push_back("-fdollars-in-identifiers"); in ConstructJob()
5840 CmdArgs.push_back("-fno-dollars-in-identifiers"); in ConstructJob()
5853 CmdArgs.push_back("-fapple-pragma-pack"); in ConstructJob()
5859 CmdArgs.push_back("-fno-math-builtin"); in ConstructJob()
5870 CmdArgs.push_back("-fno-builtin-strcat"); in ConstructJob()
5872 CmdArgs.push_back("-fno-builtin-strcpy"); in ConstructJob()
5883 CmdArgs.push_back("-frewrite-includes"); in ConstructJob()
5889 CmdArgs.push_back("-traditional-cpp"); in ConstructJob()
5894 Args.AddLastArg(CmdArgs, options::OPT_dM); in ConstructJob()
5895 Args.AddLastArg(CmdArgs, options::OPT_dD); in ConstructJob()
5899 CmdArgs.push_back("-serialize-diagnostic-file"); in ConstructJob()
5900 CmdArgs.push_back(Args.MakeArgString(A->getValue())); in ConstructJob()
5904 CmdArgs.push_back("-fretain-comments-from-system-headers"); in ConstructJob()
5907 Args.AddAllArgs(CmdArgs, options::OPT_fcomment_block_commands); in ConstructJob()
5909 Args.AddAllArgs(CmdArgs, options::OPT_fparse_all_comments); in ConstructJob()
5913 CmdArgs.push_back("-load"); in ConstructJob()
5914 CmdArgs.push_back(A->getValue()); in ConstructJob()
5920 Args.AddAllArgValues(CmdArgs, options::OPT_Xclang); in ConstructJob()
5927 CmdArgs.push_back("-disable-llvm-optzns"); in ConstructJob()
5929 A->render(Args, CmdArgs); in ConstructJob()
5942 CmdArgs.push_back("-disable-llvm-passes"); in ConstructJob()
5947 CmdArgs.push_back("-o"); in ConstructJob()
5948 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
5953 addDashXForInput(Args, Input, CmdArgs); in ConstructJob()
5956 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
5958 Input.getInputArg().renderAsInput(Args, CmdArgs); in ConstructJob()
5960 Args.AddAllArgs(CmdArgs, options::OPT_undef); in ConstructJob()
5979 CmdArgs.push_back("-dwarf-debug-flags"); in ConstructJob()
5980 CmdArgs.push_back(Args.MakeArgString(Flags)); in ConstructJob()
5990 CmdArgs.push_back("-split-dwarf-file"); in ConstructJob()
5992 CmdArgs.push_back(SplitDwarfOut); in ConstructJob()
5999 CmdArgs.push_back("-fcuda-include-gpubinary"); in ConstructJob()
6000 CmdArgs.push_back(I->getFilename()); in ConstructJob()
6011 CmdArgs.push_back("-fwhole-program-vtables"); in ConstructJob()
6021 JA, *this, Exec, CmdArgs, Inputs, std::move(CLCommand))); in ConstructJob()
6027 CmdArgs, Inputs)); in ConstructJob()
6029 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
6245 ArgStringList &CmdArgs, in AddClangCLArgs() argument
6262 CmdArgs.push_back("-D_DEBUG"); in AddClangCLArgs()
6263 CmdArgs.push_back("-D_MT"); in AddClangCLArgs()
6264 CmdArgs.push_back("-D_DLL"); in AddClangCLArgs()
6268 CmdArgs.push_back("-D_DEBUG"); in AddClangCLArgs()
6269 CmdArgs.push_back("-D_MT"); in AddClangCLArgs()
6270 CmdArgs.push_back("-D_DLL"); in AddClangCLArgs()
6275 CmdArgs.push_back("-D_DEBUG"); in AddClangCLArgs()
6276 CmdArgs.push_back("-D_MT"); in AddClangCLArgs()
6277 CmdArgs.push_back("-flto-visibility-public-std"); in AddClangCLArgs()
6281 CmdArgs.push_back("-D_DEBUG"); in AddClangCLArgs()
6282 CmdArgs.push_back("-D_MT"); in AddClangCLArgs()
6283 CmdArgs.push_back("-flto-visibility-public-std"); in AddClangCLArgs()
6291 CmdArgs.push_back("-D_VC_NODEFAULTLIB"); in AddClangCLArgs()
6293 CmdArgs.push_back(FlagForCRT.data()); in AddClangCLArgs()
6298 CmdArgs.push_back("--dependent-lib=oldnames"); in AddClangCLArgs()
6305 A->render(Args, CmdArgs); in AddClangCLArgs()
6310 CmdArgs.push_back("-fno-rtti-data"); in AddClangCLArgs()
6316 CmdArgs.push_back("-stack-protector"); in AddClangCLArgs()
6317 CmdArgs.push_back(Args.MakeArgString(Twine(LangOptions::SSPStrong))); in AddClangCLArgs()
6328 CmdArgs.push_back("-gcodeview"); in AddClangCLArgs()
6337 CmdArgs.push_back("-fcxx-exceptions"); in AddClangCLArgs()
6338 CmdArgs.push_back("-fexceptions"); in AddClangCLArgs()
6341 CmdArgs.push_back("-fexternc-nounwind"); in AddClangCLArgs()
6345 CmdArgs.push_back("-E"); in AddClangCLArgs()
6346 CmdArgs.push_back("-P"); in AddClangCLArgs()
6360 CmdArgs.push_back("-fms-volatile"); in AddClangCLArgs()
6381 CmdArgs.push_back("-fms-memptr-rep=single"); in AddClangCLArgs()
6383 CmdArgs.push_back("-fms-memptr-rep=multiple"); in AddClangCLArgs()
6385 CmdArgs.push_back("-fms-memptr-rep=virtual"); in AddClangCLArgs()
6389 CmdArgs.push_back("-fdefault-calling-conv=cdecl"); in AddClangCLArgs()
6391 CmdArgs.push_back("-fdefault-calling-conv=fastcall"); in AddClangCLArgs()
6393 CmdArgs.push_back("-fdefault-calling-conv=stdcall"); in AddClangCLArgs()
6395 CmdArgs.push_back("-fdefault-calling-conv=vectorcall"); in AddClangCLArgs()
6398 A->render(Args, CmdArgs); in AddClangCLArgs()
6401 CmdArgs.push_back("-fdiagnostics-format"); in AddClangCLArgs()
6403 CmdArgs.push_back("msvc-fallback"); in AddClangCLArgs()
6405 CmdArgs.push_back("msvc"); in AddClangCLArgs()
6416 ArgStringList &CmdArgs) const { in AddMIPSTargetArgs()
6422 CmdArgs.push_back("-target-abi"); in AddMIPSTargetArgs()
6423 CmdArgs.push_back(ABIName.data()); in AddMIPSTargetArgs()
6430 ArgStringList CmdArgs; in ConstructJob() local
6449 CmdArgs.push_back("-cc1as"); in ConstructJob()
6452 CmdArgs.push_back("-triple"); in ConstructJob()
6453 CmdArgs.push_back(Args.MakeArgString(TripleStr)); in ConstructJob()
6457 CmdArgs.push_back("-filetype"); in ConstructJob()
6458 CmdArgs.push_back("obj"); in ConstructJob()
6462 CmdArgs.push_back("-main-file-name"); in ConstructJob()
6463 CmdArgs.push_back(Clang::getBaseInputName(Args, Input)); in ConstructJob()
6468 CmdArgs.push_back("-target-cpu"); in ConstructJob()
6469 CmdArgs.push_back(Args.MakeArgString(CPU)); in ConstructJob()
6473 getTargetFeatures(getToolChain(), Triple, Args, CmdArgs, true); in ConstructJob()
6479 Args.AddAllArgs(CmdArgs, options::OPT_I_Group); in ConstructJob()
6513 addDebugCompDirArg(Args, CmdArgs); in ConstructJob()
6517 CmdArgs.push_back("-dwarf-debug-producer"); in ConstructJob()
6518 CmdArgs.push_back(Args.MakeArgString(getClangFullVersion())); in ConstructJob()
6521 Args.AddAllArgs(CmdArgs, options::OPT_I); in ConstructJob()
6523 RenderDebugEnablingArgs(Args, CmdArgs, DebugInfoKind, DwarfVersion, in ConstructJob()
6536 CmdArgs.push_back("-mrelocation-model"); in ConstructJob()
6537 CmdArgs.push_back(RMName); in ConstructJob()
6556 CmdArgs.push_back("-dwarf-debug-flags"); in ConstructJob()
6557 CmdArgs.push_back(Args.MakeArgString(Flags)); in ConstructJob()
6571 AddMIPSTargetArgs(Args, CmdArgs); in ConstructJob()
6582 CollectArgsForIntegratedAssembler(C, Args, CmdArgs, in ConstructJob()
6585 Args.AddAllArgs(CmdArgs, options::OPT_mllvm); in ConstructJob()
6588 CmdArgs.push_back("-o"); in ConstructJob()
6589 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
6592 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
6595 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
6613 ArgStringList CmdArgs; in ConstructJob() local
6633 A->render(Args, CmdArgs); in ConstructJob()
6637 RenderExtraToolArgs(JA, CmdArgs); in ConstructJob()
6641 CmdArgs.push_back("-arch"); in ConstructJob()
6642 CmdArgs.push_back( in ConstructJob()
6656 CmdArgs.push_back("-m32"); in ConstructJob()
6661 CmdArgs.push_back("-m64"); in ConstructJob()
6664 CmdArgs.push_back("-EL"); in ConstructJob()
6669 CmdArgs.push_back("-o"); in ConstructJob()
6670 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
6673 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
6676 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
6698 CmdArgs.push_back("-x"); in ConstructJob()
6699 CmdArgs.push_back(types::getTypeName(II.getType())); in ConstructJob()
6703 CmdArgs.push_back(II.getFilename()); in ConstructJob()
6709 CmdArgs.push_back("-lstdc++"); in ConstructJob()
6714 A.render(Args, CmdArgs); in ConstructJob()
6728 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
6732 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
6733 CmdArgs.push_back("-E"); in RenderExtraToolArgs()
6737 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
6746 CmdArgs.push_back("-c"); in RenderExtraToolArgs()
6751 CmdArgs.push_back("-c"); in RenderExtraToolArgs()
6754 CmdArgs.push_back("-S"); in RenderExtraToolArgs()
6757 CmdArgs.push_back("-fsyntax-only"); in RenderExtraToolArgs()
6765 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
6771 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
6783 ArgStringList CmdArgs; in ConstructJob() local
6786 CmdArgs.push_back(Args.MakeArgString(MArchString)); in ConstructJob()
6788 RenderExtraToolArgs(JA, CmdArgs); in ConstructJob()
6793 CmdArgs.push_back("-filetype=obj"); in ConstructJob()
6794 CmdArgs.push_back(Args.MakeArgString(MCpuString)); in ConstructJob()
6797 CmdArgs.push_back("-o"); in ConstructJob()
6798 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
6801 CmdArgs.push_back("-fsyntax-only"); in ConstructJob()
6806 CmdArgs.push_back(Args.MakeArgString(std::string("-gpsize=") + N)); in ConstructJob()
6809 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
6832 CmdArgs.push_back(II.getFilename()); in ConstructJob()
6836 II.getInputArg().render(Args, CmdArgs); in ConstructJob()
6840 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
6844 ArgStringList &CmdArgs) const { in RenderExtraToolArgs()
6851 const ArgList &Args, ArgStringList &CmdArgs, in constructHexagonLinkArgs() argument
6881 CmdArgs.push_back("-s"); in constructHexagonLinkArgs()
6884 CmdArgs.push_back("-r"); in constructHexagonLinkArgs()
6887 CmdArgs.push_back(Opt.c_str()); in constructHexagonLinkArgs()
6889 CmdArgs.push_back("-march=hexagon"); in constructHexagonLinkArgs()
6893 CmdArgs.push_back(Args.MakeArgString(MCpuString)); in constructHexagonLinkArgs()
6896 CmdArgs.push_back("-shared"); in constructHexagonLinkArgs()
6898 CmdArgs.push_back("-call_shared"); in constructHexagonLinkArgs()
6902 CmdArgs.push_back("-static"); in constructHexagonLinkArgs()
6905 CmdArgs.push_back("-pie"); in constructHexagonLinkArgs()
6909 CmdArgs.push_back(Args.MakeArgString(std::string("-G") + N)); in constructHexagonLinkArgs()
6916 CmdArgs.push_back("-o"); in constructHexagonLinkArgs()
6917 CmdArgs.push_back(Output.getFilename()); in constructHexagonLinkArgs()
6958 CmdArgs.push_back(Args.MakeArgString(Crt0SA)); in constructHexagonLinkArgs()
6961 CmdArgs.push_back(Args.MakeArgString(Crt0)); in constructHexagonLinkArgs()
6966 CmdArgs.push_back(Args.MakeArgString(Init)); in constructHexagonLinkArgs()
6974 CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath)); in constructHexagonLinkArgs()
6979 Args.AddAllArgs(CmdArgs, in constructHexagonLinkArgs()
6983 AddLinkerInputs(HTC, Inputs, Args, CmdArgs); in constructHexagonLinkArgs()
6990 HTC.AddCXXStdlibLibArgs(Args, CmdArgs); in constructHexagonLinkArgs()
6991 CmdArgs.push_back("-lm"); in constructHexagonLinkArgs()
6994 CmdArgs.push_back("--start-group"); in constructHexagonLinkArgs()
6998 CmdArgs.push_back(Args.MakeArgString("-l" + Lib)); in constructHexagonLinkArgs()
6999 CmdArgs.push_back("-lc"); in constructHexagonLinkArgs()
7001 CmdArgs.push_back("-lgcc"); in constructHexagonLinkArgs()
7003 CmdArgs.push_back("--end-group"); in constructHexagonLinkArgs()
7013 CmdArgs.push_back(Args.MakeArgString(Fini)); in constructHexagonLinkArgs()
7024 ArgStringList CmdArgs; in ConstructJob() local
7025 constructHexagonLinkArgs(C, JA, HTC, Output, Inputs, Args, CmdArgs, in ConstructJob()
7030 CmdArgs, Inputs)); in ConstructJob()
7041 ArgStringList CmdArgs; in ConstructJob() local
7042 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
7043 CmdArgs.push_back("-shared"); in ConstructJob()
7044 CmdArgs.push_back("-o"); in ConstructJob()
7045 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7047 CmdArgs, Inputs)); in ConstructJob()
7071 ArgStringList CmdArgs; in ConstructJob() local
7072 CmdArgs.push_back("-flavor"); in ConstructJob()
7073 CmdArgs.push_back("ld"); in ConstructJob()
7080 CmdArgs.push_back("--gc-sections"); in ConstructJob()
7083 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
7085 CmdArgs.push_back("--strip-all"); in ConstructJob()
7087 CmdArgs.push_back("-shared"); in ConstructJob()
7089 CmdArgs.push_back("-Bstatic"); in ConstructJob()
7091 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
7092 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
7096 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("rcrt1.o"))); in ConstructJob()
7098 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("Scrt1.o"))); in ConstructJob()
7100 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); in ConstructJob()
7102 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
7105 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
7109 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
7112 CmdArgs.push_back("-lpthread"); in ConstructJob()
7114 CmdArgs.push_back("-lc"); in ConstructJob()
7115 CmdArgs.push_back("-lcompiler_rt"); in ConstructJob()
7119 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
7121 CmdArgs.push_back("-o"); in ConstructJob()
7122 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7124 C.addCommand(llvm::make_unique<Command>(JA, *this, Linker, CmdArgs, Inputs)); in ConstructJob()
7208 void arm::appendEBLinkFlags(const ArgList &Args, ArgStringList &CmdArgs, in appendEBLinkFlags() argument
7216 CmdArgs.push_back("--be8"); in appendEBLinkFlags()
7404 ArgStringList CmdArgs; in ConstructJob() local
7415 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
7418 CmdArgs.push_back("-Bstatic"); in ConstructJob()
7421 CmdArgs.push_back("-pie"); in ConstructJob()
7422 CmdArgs.push_back("--no-dynamic-linker"); in ConstructJob()
7423 CmdArgs.push_back("-zrelro"); in ConstructJob()
7425 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
7426 CmdArgs.push_back("--gc-sections"); in ConstructJob()
7429 CmdArgs.push_back("-o"); in ConstructJob()
7430 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7436 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob()
7437 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbegin.o"))); in ConstructJob()
7440 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
7441 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
7442 Args.AddAllArgs(CmdArgs, in ConstructJob()
7447 AddGoldPlugin(ToolChain, Args, CmdArgs, D.getLTOMode() == LTOK_Thin); in ConstructJob()
7449 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
7453 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
7454 CmdArgs.push_back("-lc"); in ConstructJob()
7455 CmdArgs.push_back("-lcompiler_rt"); in ConstructJob()
7459 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
7462 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7470 ArgStringList CmdArgs; in ConstructJob() local
7490 CmdArgs.push_back("-Q"); in ConstructJob()
7497 CmdArgs.push_back("--gstabs"); in ConstructJob()
7499 CmdArgs.push_back("-g"); in ConstructJob()
7503 AddMachOArch(Args, CmdArgs); in ConstructJob()
7509 CmdArgs.push_back("-force_cpusubtype_ALL"); in ConstructJob()
7516 CmdArgs.push_back("-static"); in ConstructJob()
7518 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
7521 CmdArgs.push_back("-o"); in ConstructJob()
7522 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7525 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
7530 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7536 ArgStringList &CmdArgs) const { in AddMachOArch()
7540 CmdArgs.push_back("-arch"); in AddMachOArch()
7541 CmdArgs.push_back(Args.MakeArgString(ArchName)); in AddMachOArch()
7545 CmdArgs.push_back("-force_cpusubtype_ALL"); in AddMachOArch()
7560 ArgStringList &CmdArgs, in AddLinkArgs() argument
7574 CmdArgs.push_back("-demangle"); in AddLinkArgs()
7577 CmdArgs.push_back("-export_dynamic"); in AddLinkArgs()
7583 CmdArgs.push_back("-application_extension"); in AddLinkArgs()
7593 CmdArgs.push_back("-object_path_lto"); in AddLinkArgs()
7594 CmdArgs.push_back(TmpPath); in AddLinkArgs()
7607 CmdArgs.push_back("-lto_library"); in AddLinkArgs()
7608 CmdArgs.push_back(C.getArgs().MakeArgString(LibLTOPath)); in AddLinkArgs()
7616 Args.AddAllArgs(CmdArgs, options::OPT_static); in AddLinkArgs()
7618 CmdArgs.push_back("-dynamic"); in AddLinkArgs()
7625 AddMachOArch(Args, CmdArgs); in AddLinkArgs()
7627 Args.AddLastArg(CmdArgs, options::OPT_force__cpusubtype__ALL); in AddLinkArgs()
7629 Args.AddLastArg(CmdArgs, options::OPT_bundle); in AddLinkArgs()
7630 Args.AddAllArgs(CmdArgs, options::OPT_bundle__loader); in AddLinkArgs()
7631 Args.AddAllArgs(CmdArgs, options::OPT_client__name); in AddLinkArgs()
7640 Args.AddLastArg(CmdArgs, options::OPT_force__flat__namespace); in AddLinkArgs()
7641 Args.AddLastArg(CmdArgs, options::OPT_keep__private__externs); in AddLinkArgs()
7642 Args.AddLastArg(CmdArgs, options::OPT_private__bundle); in AddLinkArgs()
7644 CmdArgs.push_back("-dylib"); in AddLinkArgs()
7656 Args.AddAllArgsTranslated(CmdArgs, options::OPT_compatibility__version, in AddLinkArgs()
7658 Args.AddAllArgsTranslated(CmdArgs, options::OPT_current__version, in AddLinkArgs()
7661 AddMachOArch(Args, CmdArgs); in AddLinkArgs()
7663 Args.AddAllArgsTranslated(CmdArgs, options::OPT_install__name, in AddLinkArgs()
7667 Args.AddLastArg(CmdArgs, options::OPT_all__load); in AddLinkArgs()
7668 Args.AddAllArgs(CmdArgs, options::OPT_allowable__client); in AddLinkArgs()
7669 Args.AddLastArg(CmdArgs, options::OPT_bind__at__load); in AddLinkArgs()
7671 Args.AddLastArg(CmdArgs, options::OPT_arch__errors__fatal); in AddLinkArgs()
7672 Args.AddLastArg(CmdArgs, options::OPT_dead__strip); in AddLinkArgs()
7673 Args.AddLastArg(CmdArgs, options::OPT_no__dead__strip__inits__and__terms); in AddLinkArgs()
7674 Args.AddAllArgs(CmdArgs, options::OPT_dylib__file); in AddLinkArgs()
7675 Args.AddLastArg(CmdArgs, options::OPT_dynamic); in AddLinkArgs()
7676 Args.AddAllArgs(CmdArgs, options::OPT_exported__symbols__list); in AddLinkArgs()
7677 Args.AddLastArg(CmdArgs, options::OPT_flat__namespace); in AddLinkArgs()
7678 Args.AddAllArgs(CmdArgs, options::OPT_force__load); in AddLinkArgs()
7679 Args.AddAllArgs(CmdArgs, options::OPT_headerpad__max__install__names); in AddLinkArgs()
7680 Args.AddAllArgs(CmdArgs, options::OPT_image__base); in AddLinkArgs()
7681 Args.AddAllArgs(CmdArgs, options::OPT_init); in AddLinkArgs()
7684 MachOTC.addMinVersionArgs(Args, CmdArgs); in AddLinkArgs()
7686 Args.AddLastArg(CmdArgs, options::OPT_nomultidefs); in AddLinkArgs()
7687 Args.AddLastArg(CmdArgs, options::OPT_multi__module); in AddLinkArgs()
7688 Args.AddLastArg(CmdArgs, options::OPT_single__module); in AddLinkArgs()
7689 Args.AddAllArgs(CmdArgs, options::OPT_multiply__defined); in AddLinkArgs()
7690 Args.AddAllArgs(CmdArgs, options::OPT_multiply__defined__unused); in AddLinkArgs()
7697 CmdArgs.push_back("-pie"); in AddLinkArgs()
7699 CmdArgs.push_back("-no_pie"); in AddLinkArgs()
7706 CmdArgs.push_back("-bitcode_bundle"); in AddLinkArgs()
7711 Args.AddLastArg(CmdArgs, options::OPT_prebind); in AddLinkArgs()
7712 Args.AddLastArg(CmdArgs, options::OPT_noprebind); in AddLinkArgs()
7713 Args.AddLastArg(CmdArgs, options::OPT_nofixprebinding); in AddLinkArgs()
7714 Args.AddLastArg(CmdArgs, options::OPT_prebind__all__twolevel__modules); in AddLinkArgs()
7715 Args.AddLastArg(CmdArgs, options::OPT_read__only__relocs); in AddLinkArgs()
7716 Args.AddAllArgs(CmdArgs, options::OPT_sectcreate); in AddLinkArgs()
7717 Args.AddAllArgs(CmdArgs, options::OPT_sectorder); in AddLinkArgs()
7718 Args.AddAllArgs(CmdArgs, options::OPT_seg1addr); in AddLinkArgs()
7719 Args.AddAllArgs(CmdArgs, options::OPT_segprot); in AddLinkArgs()
7720 Args.AddAllArgs(CmdArgs, options::OPT_segaddr); in AddLinkArgs()
7721 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__only__addr); in AddLinkArgs()
7722 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__write__addr); in AddLinkArgs()
7723 Args.AddAllArgs(CmdArgs, options::OPT_seg__addr__table); in AddLinkArgs()
7724 Args.AddAllArgs(CmdArgs, options::OPT_seg__addr__table__filename); in AddLinkArgs()
7725 Args.AddAllArgs(CmdArgs, options::OPT_sub__library); in AddLinkArgs()
7726 Args.AddAllArgs(CmdArgs, options::OPT_sub__umbrella); in AddLinkArgs()
7732 CmdArgs.push_back("-syslibroot"); in AddLinkArgs()
7733 CmdArgs.push_back(C.getArgs().MakeArgString(sysroot)); in AddLinkArgs()
7735 CmdArgs.push_back("-syslibroot"); in AddLinkArgs()
7736 CmdArgs.push_back(A->getValue()); in AddLinkArgs()
7739 Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace); in AddLinkArgs()
7740 Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace__hints); in AddLinkArgs()
7741 Args.AddAllArgs(CmdArgs, options::OPT_umbrella); in AddLinkArgs()
7742 Args.AddAllArgs(CmdArgs, options::OPT_undefined); in AddLinkArgs()
7743 Args.AddAllArgs(CmdArgs, options::OPT_unexported__symbols__list); in AddLinkArgs()
7744 Args.AddAllArgs(CmdArgs, options::OPT_weak__reference__mismatches); in AddLinkArgs()
7745 Args.AddLastArg(CmdArgs, options::OPT_X_Flag); in AddLinkArgs()
7746 Args.AddAllArgs(CmdArgs, options::OPT_y); in AddLinkArgs()
7747 Args.AddLastArg(CmdArgs, options::OPT_w); in AddLinkArgs()
7748 Args.AddAllArgs(CmdArgs, options::OPT_pagezero__size); in AddLinkArgs()
7749 Args.AddAllArgs(CmdArgs, options::OPT_segs__read__); in AddLinkArgs()
7750 Args.AddLastArg(CmdArgs, options::OPT_seglinkedit); in AddLinkArgs()
7751 Args.AddLastArg(CmdArgs, options::OPT_noseglinkedit); in AddLinkArgs()
7752 Args.AddAllArgs(CmdArgs, options::OPT_sectalign); in AddLinkArgs()
7753 Args.AddAllArgs(CmdArgs, options::OPT_sectobjectsymbols); in AddLinkArgs()
7754 Args.AddAllArgs(CmdArgs, options::OPT_segcreate); in AddLinkArgs()
7755 Args.AddLastArg(CmdArgs, options::OPT_whyload); in AddLinkArgs()
7756 Args.AddLastArg(CmdArgs, options::OPT_whatsloaded); in AddLinkArgs()
7757 Args.AddAllArgs(CmdArgs, options::OPT_dylinker__install__name); in AddLinkArgs()
7758 Args.AddLastArg(CmdArgs, options::OPT_dylinker); in AddLinkArgs()
7759 Args.AddLastArg(CmdArgs, options::OPT_Mach); in AddLinkArgs()
7778 ArgStringList CmdArgs; in ConstructJob() local
7787 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7788 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, None)); in ConstructJob()
7794 AddLinkArgs(C, Args, CmdArgs, Inputs); in ConstructJob()
7798 Args.AddAllArgs(CmdArgs, {options::OPT_d_Flag, options::OPT_s, options::OPT_t, in ConstructJob()
7806 CmdArgs.push_back("-ObjC"); in ConstructJob()
7808 CmdArgs.push_back("-o"); in ConstructJob()
7809 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7812 getMachOToolChain().addStartObjectFileArgs(Args, CmdArgs); in ConstructJob()
7818 getMachOToolChain().AddLinkRuntimeLib(Args, CmdArgs, in ConstructJob()
7823 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
7825 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
7844 addOpenMPRuntime(CmdArgs, getToolChain(), Args); in ConstructJob()
7849 getMachOToolChain().AddLinkARCArgs(Args, CmdArgs); in ConstructJob()
7851 CmdArgs.push_back("-framework"); in ConstructJob()
7852 CmdArgs.push_back("Foundation"); in ConstructJob()
7854 CmdArgs.push_back("-lobjc"); in ConstructJob()
7858 CmdArgs.push_back("-arch_multiple"); in ConstructJob()
7859 CmdArgs.push_back("-final_output"); in ConstructJob()
7860 CmdArgs.push_back(LinkingOutput); in ConstructJob()
7864 CmdArgs.push_back("-allow_stack_execute"); in ConstructJob()
7866 getMachOToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
7870 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
7875 getMachOToolChain().AddLinkRuntimeLibArgs(Args, CmdArgs); in ConstructJob()
7882 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
7883 Args.AddAllArgs(CmdArgs, options::OPT_F); in ConstructJob()
7887 CmdArgs.push_back(Args.MakeArgString(std::string("-F") + A->getValue())); in ConstructJob()
7892 CmdArgs.push_back("-framework"); in ConstructJob()
7893 CmdArgs.push_back("Accelerate"); in ConstructJob()
7900 llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs); in ConstructJob()
7910 ArgStringList CmdArgs; in ConstructJob() local
7912 CmdArgs.push_back("-create"); in ConstructJob()
7915 CmdArgs.push_back("-output"); in ConstructJob()
7916 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7920 CmdArgs.push_back(II.getFilename()); in ConstructJob()
7924 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7932 ArgStringList CmdArgs; in ConstructJob() local
7934 CmdArgs.push_back("-o"); in ConstructJob()
7935 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7940 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
7944 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7952 ArgStringList CmdArgs; in ConstructJob() local
7953 CmdArgs.push_back("--verify"); in ConstructJob()
7954 CmdArgs.push_back("--debug-info"); in ConstructJob()
7955 CmdArgs.push_back("--eh-frame"); in ConstructJob()
7956 CmdArgs.push_back("--quiet"); in ConstructJob()
7963 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
7967 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7976 ArgStringList CmdArgs; in ConstructJob() local
7978 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
7980 CmdArgs.push_back("-o"); in ConstructJob()
7981 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
7984 CmdArgs.push_back(II.getFilename()); in ConstructJob()
7987 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
7995 ArgStringList CmdArgs; in ConstructJob() local
7998 CmdArgs.push_back("-C"); in ConstructJob()
8001 CmdArgs.push_back("-e"); in ConstructJob()
8002 CmdArgs.push_back("_start"); in ConstructJob()
8006 CmdArgs.push_back("-Bstatic"); in ConstructJob()
8007 CmdArgs.push_back("-dn"); in ConstructJob()
8009 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
8011 CmdArgs.push_back("-shared"); in ConstructJob()
8013 CmdArgs.push_back("--dynamic-linker"); in ConstructJob()
8014 CmdArgs.push_back( in ConstructJob()
8020 CmdArgs.push_back("-o"); in ConstructJob()
8021 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8028 CmdArgs.push_back( in ConstructJob()
8031 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crti.o"))); in ConstructJob()
8032 CmdArgs.push_back( in ConstructJob()
8034 CmdArgs.push_back( in ConstructJob()
8038 getToolChain().AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
8040 Args.AddAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, in ConstructJob()
8043 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
8047 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
8048 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
8049 CmdArgs.push_back("-lc"); in ConstructJob()
8051 CmdArgs.push_back("-lgcc"); in ConstructJob()
8052 CmdArgs.push_back("-lm"); in ConstructJob()
8057 CmdArgs.push_back( in ConstructJob()
8060 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o"))); in ConstructJob()
8062 getToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
8065 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8074 ArgStringList CmdArgs; in ConstructJob() local
8080 CmdArgs.push_back("--32"); in ConstructJob()
8084 CmdArgs.push_back("-mppc"); in ConstructJob()
8085 CmdArgs.push_back("-many"); in ConstructJob()
8090 CmdArgs.push_back("-32"); in ConstructJob()
8092 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
8093 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8098 CmdArgs.push_back("-64"); in ConstructJob()
8100 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
8101 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8111 CmdArgs.push_back("-mabi"); in ConstructJob()
8112 CmdArgs.push_back(getGnuCompatibleMipsABIName(ABIName).data()); in ConstructJob()
8115 CmdArgs.push_back("-EB"); in ConstructJob()
8117 CmdArgs.push_back("-EL"); in ConstructJob()
8119 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8127 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
8129 CmdArgs.push_back("-o"); in ConstructJob()
8130 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8133 CmdArgs.push_back(II.getFilename()); in ConstructJob()
8136 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8145 ArgStringList CmdArgs; in ConstructJob() local
8156 CmdArgs.push_back("-EB"); in ConstructJob()
8158 CmdArgs.push_back("-EL"); in ConstructJob()
8161 CmdArgs.push_back("-e"); in ConstructJob()
8162 CmdArgs.push_back("__start"); in ConstructJob()
8166 CmdArgs.push_back("-Bstatic"); in ConstructJob()
8169 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
8170 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
8171 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
8173 CmdArgs.push_back("-shared"); in ConstructJob()
8175 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
8176 CmdArgs.push_back("/usr/libexec/ld.so"); in ConstructJob()
8181 CmdArgs.push_back("-nopie"); in ConstructJob()
8184 CmdArgs.push_back("-o"); in ConstructJob()
8185 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8193 CmdArgs.push_back( in ConstructJob()
8196 CmdArgs.push_back( in ConstructJob()
8198 CmdArgs.push_back( in ConstructJob()
8201 CmdArgs.push_back( in ConstructJob()
8209 CmdArgs.push_back( in ConstructJob()
8212 Args.AddAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, in ConstructJob()
8216 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
8220 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
8222 CmdArgs.push_back("-lm_p"); in ConstructJob()
8224 CmdArgs.push_back("-lm"); in ConstructJob()
8229 CmdArgs.push_back("-lgcc"); in ConstructJob()
8233 CmdArgs.push_back("-lpthread_p"); in ConstructJob()
8235 CmdArgs.push_back("-lpthread"); in ConstructJob()
8240 CmdArgs.push_back("-lc_p"); in ConstructJob()
8242 CmdArgs.push_back("-lc"); in ConstructJob()
8245 CmdArgs.push_back("-lgcc"); in ConstructJob()
8250 CmdArgs.push_back( in ConstructJob()
8253 CmdArgs.push_back( in ConstructJob()
8258 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8267 ArgStringList CmdArgs; in ConstructJob() local
8269 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
8271 CmdArgs.push_back("-o"); in ConstructJob()
8272 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8275 CmdArgs.push_back(II.getFilename()); in ConstructJob()
8278 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8287 ArgStringList CmdArgs; in ConstructJob() local
8290 CmdArgs.push_back("-e"); in ConstructJob()
8291 CmdArgs.push_back("__start"); in ConstructJob()
8295 CmdArgs.push_back("-Bstatic"); in ConstructJob()
8298 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
8299 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
8300 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
8302 CmdArgs.push_back("-shared"); in ConstructJob()
8304 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
8305 CmdArgs.push_back("/usr/libexec/ld.so"); in ConstructJob()
8310 CmdArgs.push_back("-o"); in ConstructJob()
8311 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8319 CmdArgs.push_back( in ConstructJob()
8322 CmdArgs.push_back( in ConstructJob()
8324 CmdArgs.push_back( in ConstructJob()
8327 CmdArgs.push_back( in ConstructJob()
8332 Args.AddAllArgs(CmdArgs, in ConstructJob()
8335 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
8339 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
8341 CmdArgs.push_back("-lm_p"); in ConstructJob()
8343 CmdArgs.push_back("-lm"); in ConstructJob()
8348 CmdArgs.push_back("-lpthread_p"); in ConstructJob()
8350 CmdArgs.push_back("-lpthread"); in ConstructJob()
8355 CmdArgs.push_back("-lc_p"); in ConstructJob()
8357 CmdArgs.push_back("-lc"); in ConstructJob()
8374 CmdArgs.push_back(Args.MakeArgString("-lclang_rt." + MyArch)); in ConstructJob()
8379 CmdArgs.push_back( in ConstructJob()
8382 CmdArgs.push_back( in ConstructJob()
8387 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8396 ArgStringList CmdArgs; in ConstructJob() local
8404 CmdArgs.push_back("--32"); in ConstructJob()
8407 CmdArgs.push_back("-a32"); in ConstructJob()
8417 CmdArgs.push_back("-march"); in ConstructJob()
8418 CmdArgs.push_back(CPUName.data()); in ConstructJob()
8420 CmdArgs.push_back("-mabi"); in ConstructJob()
8421 CmdArgs.push_back(getGnuCompatibleMipsABIName(ABIName).data()); in ConstructJob()
8425 CmdArgs.push_back("-EB"); in ConstructJob()
8427 CmdArgs.push_back("-EL"); in ConstructJob()
8431 CmdArgs.push_back(Args.MakeArgString("-G" + v)); in ConstructJob()
8435 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8445 CmdArgs.push_back("-mfpu=vfp"); in ConstructJob()
8447 CmdArgs.push_back("-mfpu=softvfp"); in ConstructJob()
8453 CmdArgs.push_back("-meabi=5"); in ConstructJob()
8457 CmdArgs.push_back("-matpcs"); in ConstructJob()
8465 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
8466 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8471 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
8473 CmdArgs.push_back("-o"); in ConstructJob()
8474 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8477 CmdArgs.push_back(II.getFilename()); in ConstructJob()
8480 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8495 ArgStringList CmdArgs; in ConstructJob() local
8506 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
8509 CmdArgs.push_back("-pie"); in ConstructJob()
8511 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
8513 CmdArgs.push_back("-Bstatic"); in ConstructJob()
8516 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
8518 CmdArgs.push_back("-Bshareable"); in ConstructJob()
8520 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
8521 CmdArgs.push_back("/libexec/ld-elf.so.1"); in ConstructJob()
8526 CmdArgs.push_back("--hash-style=both"); in ConstructJob()
8529 CmdArgs.push_back("--enable-new-dtags"); in ConstructJob()
8535 CmdArgs.push_back("-m"); in ConstructJob()
8536 CmdArgs.push_back("elf_i386_fbsd"); in ConstructJob()
8540 CmdArgs.push_back("-m"); in ConstructJob()
8541 CmdArgs.push_back("elf32ppc_fbsd"); in ConstructJob()
8550 CmdArgs.push_back(Args.MakeArgString("-G" + v)); in ConstructJob()
8556 CmdArgs.push_back("-o"); in ConstructJob()
8557 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8573 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
8575 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
8585 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
8588 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
8589 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
8590 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
8591 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
8592 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
8593 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
8594 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
8595 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
8598 AddGoldPlugin(ToolChain, Args, CmdArgs, D.getLTOMode() == LTOK_Thin); in ConstructJob()
8600 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
8601 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
8604 addOpenMPRuntime(CmdArgs, ToolChain, Args); in ConstructJob()
8606 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
8608 CmdArgs.push_back("-lm_p"); in ConstructJob()
8610 CmdArgs.push_back("-lm"); in ConstructJob()
8613 linkSanitizerRuntimeDeps(ToolChain, CmdArgs); in ConstructJob()
8617 CmdArgs.push_back("-lgcc_p"); in ConstructJob()
8619 CmdArgs.push_back("-lgcc"); in ConstructJob()
8621 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
8623 CmdArgs.push_back("-lgcc_eh_p"); in ConstructJob()
8625 CmdArgs.push_back("--as-needed"); in ConstructJob()
8626 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
8627 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
8632 CmdArgs.push_back("-lpthread_p"); in ConstructJob()
8634 CmdArgs.push_back("-lpthread"); in ConstructJob()
8639 CmdArgs.push_back("-lc"); in ConstructJob()
8641 CmdArgs.push_back("-lc_p"); in ConstructJob()
8642 CmdArgs.push_back("-lgcc_p"); in ConstructJob()
8644 CmdArgs.push_back("-lc"); in ConstructJob()
8645 CmdArgs.push_back("-lgcc"); in ConstructJob()
8649 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
8651 CmdArgs.push_back("-lgcc_eh_p"); in ConstructJob()
8653 CmdArgs.push_back("--as-needed"); in ConstructJob()
8654 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
8655 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
8661 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtendS.o"))); in ConstructJob()
8663 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
8664 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
8667 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
8670 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8679 ArgStringList CmdArgs; in ConstructJob() local
8685 CmdArgs.push_back("--32"); in ConstructJob()
8695 CmdArgs.push_back(Args.MakeArgString("-mcpu=" + Arch)); in ConstructJob()
8707 CmdArgs.push_back("-march"); in ConstructJob()
8708 CmdArgs.push_back(CPUName.data()); in ConstructJob()
8710 CmdArgs.push_back("-mabi"); in ConstructJob()
8711 CmdArgs.push_back(getGnuCompatibleMipsABIName(ABIName).data()); in ConstructJob()
8715 CmdArgs.push_back("-EB"); in ConstructJob()
8717 CmdArgs.push_back("-EL"); in ConstructJob()
8719 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8725 CmdArgs.push_back("-32"); in ConstructJob()
8727 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
8728 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8733 CmdArgs.push_back("-64"); in ConstructJob()
8735 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
8736 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
8744 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
8746 CmdArgs.push_back("-o"); in ConstructJob()
8747 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8750 CmdArgs.push_back(II.getFilename()); in ConstructJob()
8753 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8762 ArgStringList CmdArgs; in ConstructJob() local
8765 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
8767 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
8769 CmdArgs.push_back("-Bstatic"); in ConstructJob()
8772 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
8774 CmdArgs.push_back("-Bshareable"); in ConstructJob()
8776 Args.AddAllArgs(CmdArgs, options::OPT_pie); in ConstructJob()
8777 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
8778 CmdArgs.push_back("/libexec/ld.elf_so"); in ConstructJob()
8786 CmdArgs.push_back("-m"); in ConstructJob()
8787 CmdArgs.push_back("elf_i386"); in ConstructJob()
8791 CmdArgs.push_back("-m"); in ConstructJob()
8795 CmdArgs.push_back("armelf_nbsd_eabi"); in ConstructJob()
8799 CmdArgs.push_back("armelf_nbsd_eabihf"); in ConstructJob()
8802 CmdArgs.push_back("armelf_nbsd"); in ConstructJob()
8809 Args, CmdArgs, in ConstructJob()
8811 CmdArgs.push_back("-m"); in ConstructJob()
8815 CmdArgs.push_back("armelfb_nbsd_eabi"); in ConstructJob()
8819 CmdArgs.push_back("armelfb_nbsd_eabihf"); in ConstructJob()
8822 CmdArgs.push_back("armelfb_nbsd"); in ConstructJob()
8829 CmdArgs.push_back("-m"); in ConstructJob()
8831 CmdArgs.push_back("elf32btsmip"); in ConstructJob()
8833 CmdArgs.push_back("elf32ltsmip"); in ConstructJob()
8835 CmdArgs.push_back("-m"); in ConstructJob()
8837 CmdArgs.push_back("elf64btsmip"); in ConstructJob()
8839 CmdArgs.push_back("elf64ltsmip"); in ConstructJob()
8843 CmdArgs.push_back("-m"); in ConstructJob()
8844 CmdArgs.push_back("elf32ppc_nbsd"); in ConstructJob()
8849 CmdArgs.push_back("-m"); in ConstructJob()
8850 CmdArgs.push_back("elf64ppc"); in ConstructJob()
8854 CmdArgs.push_back("-m"); in ConstructJob()
8855 CmdArgs.push_back("elf32_sparc"); in ConstructJob()
8859 CmdArgs.push_back("-m"); in ConstructJob()
8860 CmdArgs.push_back("elf64_sparc"); in ConstructJob()
8868 CmdArgs.push_back("-o"); in ConstructJob()
8869 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
8876 CmdArgs.push_back( in ConstructJob()
8879 CmdArgs.push_back( in ConstructJob()
8882 CmdArgs.push_back( in ConstructJob()
8885 CmdArgs.push_back( in ConstructJob()
8890 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
8891 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructJob()
8892 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
8893 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructJob()
8894 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructJob()
8895 Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
8896 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructJob()
8898 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
8925 addOpenMPRuntime(CmdArgs, getToolChain(), Args); in ConstructJob()
8927 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
8928 CmdArgs.push_back("-lm"); in ConstructJob()
8931 CmdArgs.push_back("-lpthread"); in ConstructJob()
8932 CmdArgs.push_back("-lc"); in ConstructJob()
8939 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
8940 CmdArgs.push_back("-lc"); in ConstructJob()
8941 CmdArgs.push_back("-lgcc"); in ConstructJob()
8943 CmdArgs.push_back("-lgcc"); in ConstructJob()
8944 CmdArgs.push_back("--as-needed"); in ConstructJob()
8945 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
8946 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
8953 CmdArgs.push_back( in ConstructJob()
8956 CmdArgs.push_back( in ConstructJob()
8958 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o"))); in ConstructJob()
8961 getToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
8964 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
8977 ArgStringList CmdArgs; in ConstructJob() local
8991 CmdArgs.push_back("--32"); in ConstructJob()
8995 CmdArgs.push_back("--x32"); in ConstructJob()
8997 CmdArgs.push_back("--64"); in ConstructJob()
9000 CmdArgs.push_back("-a32"); in ConstructJob()
9001 CmdArgs.push_back("-mppc"); in ConstructJob()
9002 CmdArgs.push_back("-many"); in ConstructJob()
9005 CmdArgs.push_back("-a64"); in ConstructJob()
9006 CmdArgs.push_back("-mppc64"); in ConstructJob()
9007 CmdArgs.push_back("-many"); in ConstructJob()
9010 CmdArgs.push_back("-a64"); in ConstructJob()
9011 CmdArgs.push_back("-mppc64"); in ConstructJob()
9012 CmdArgs.push_back("-many"); in ConstructJob()
9013 CmdArgs.push_back("-mlittle-endian"); in ConstructJob()
9017 CmdArgs.push_back("-32"); in ConstructJob()
9019 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
9020 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
9024 CmdArgs.push_back("-64"); in ConstructJob()
9026 CmdArgs.push_back(getSparcAsmModeForCPU(CPU, getToolChain().getTriple())); in ConstructJob()
9027 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
9037 CmdArgs.push_back("-mfpu=neon"); in ConstructJob()
9040 CmdArgs.push_back("-mfpu=crypto-neon-fp-armv8"); in ConstructJob()
9049 CmdArgs.push_back(Args.MakeArgString("-mfloat-abi=soft")); in ConstructJob()
9052 CmdArgs.push_back(Args.MakeArgString("-mfloat-abi=softfp")); in ConstructJob()
9055 CmdArgs.push_back(Args.MakeArgString("-mfloat-abi=hard")); in ConstructJob()
9059 Args.AddLastArg(CmdArgs, options::OPT_march_EQ); in ConstructJob()
9067 CmdArgs.push_back("-mcpu=cortex-a15"); in ConstructJob()
9069 Args.AddLastArg(CmdArgs, options::OPT_mcpu_EQ); in ConstructJob()
9070 Args.AddLastArg(CmdArgs, options::OPT_mfpu_EQ); in ConstructJob()
9082 CmdArgs.push_back("-march"); in ConstructJob()
9083 CmdArgs.push_back(CPUName.data()); in ConstructJob()
9085 CmdArgs.push_back("-mabi"); in ConstructJob()
9086 CmdArgs.push_back(ABIName.data()); in ConstructJob()
9091 CmdArgs.push_back("-mno-shared"); in ConstructJob()
9095 CmdArgs.push_back(ABIName == "64" ? "-KPIC" : "-call_nonpic"); in ConstructJob()
9099 CmdArgs.push_back("-EB"); in ConstructJob()
9101 CmdArgs.push_back("-EL"); in ConstructJob()
9105 CmdArgs.push_back(Args.MakeArgString("-mnan=2008")); in ConstructJob()
9112 A->render(Args, CmdArgs); in ConstructJob()
9116 CmdArgs.push_back("-mfpxx"); in ConstructJob()
9124 A->render(Args, CmdArgs); in ConstructJob()
9127 CmdArgs.push_back("-no-mips16"); in ConstructJob()
9131 Args.AddLastArg(CmdArgs, options::OPT_mmicromips, in ConstructJob()
9133 Args.AddLastArg(CmdArgs, options::OPT_mdsp, options::OPT_mno_dsp); in ConstructJob()
9134 Args.AddLastArg(CmdArgs, options::OPT_mdspr2, options::OPT_mno_dspr2); in ConstructJob()
9140 CmdArgs.push_back(Args.MakeArgString("-mmsa")); in ConstructJob()
9143 Args.AddLastArg(CmdArgs, options::OPT_mhard_float, in ConstructJob()
9146 Args.AddLastArg(CmdArgs, options::OPT_mdouble_float, in ConstructJob()
9149 Args.AddLastArg(CmdArgs, options::OPT_modd_spreg, in ConstructJob()
9152 AddAssemblerKPIC(getToolChain(), Args, CmdArgs); in ConstructJob()
9159 CmdArgs.push_back(Args.MakeArgString("-march=" + CPUName)); in ConstructJob()
9164 Args.AddAllArgs(CmdArgs, options::OPT_I); in ConstructJob()
9165 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
9167 CmdArgs.push_back("-o"); in ConstructJob()
9168 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9171 CmdArgs.push_back(II.getFilename()); in ConstructJob()
9174 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9186 ArgStringList &CmdArgs, const ArgList &Args) { in AddLibgcc() argument
9193 CmdArgs.push_back("-lgcc"); in AddLibgcc()
9197 CmdArgs.push_back("-lgcc"); in AddLibgcc()
9200 CmdArgs.push_back("--as-needed"); in AddLibgcc()
9201 CmdArgs.push_back("-lgcc_s"); in AddLibgcc()
9203 CmdArgs.push_back("--no-as-needed"); in AddLibgcc()
9207 CmdArgs.push_back("-lgcc_eh"); in AddLibgcc()
9209 CmdArgs.push_back("-lgcc"); in AddLibgcc()
9217 CmdArgs.push_back("-ldl"); in AddLibgcc()
9221 ArgStringList &CmdArgs, const ArgList &Args) { in AddRunTimeLibs() argument
9232 addClangRT(TC, Args, CmdArgs); in AddRunTimeLibs()
9246 AddLibgcc(TC.getTriple(), D, CmdArgs, Args); in AddRunTimeLibs()
9323 ArgStringList CmdArgs; in ConstructJob() local
9335 CmdArgs.push_back("-flavor"); in ConstructJob()
9336 CmdArgs.push_back("old-gnu"); in ConstructJob()
9337 CmdArgs.push_back("-target"); in ConstructJob()
9338 CmdArgs.push_back(Args.MakeArgString(getToolChain().getTripleString())); in ConstructJob()
9342 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
9345 CmdArgs.push_back("-pie"); in ConstructJob()
9348 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
9351 CmdArgs.push_back("-s"); in ConstructJob()
9354 arm::appendEBLinkFlags(Args, CmdArgs, Triple); in ConstructJob()
9357 CmdArgs.push_back(Opt.c_str()); in ConstructJob()
9360 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
9363 CmdArgs.push_back("-m"); in ConstructJob()
9364 CmdArgs.push_back(getLDMOption(ToolChain.getTriple(), Args)); in ConstructJob()
9369 CmdArgs.push_back("-Bstatic"); in ConstructJob()
9371 CmdArgs.push_back("-static"); in ConstructJob()
9373 CmdArgs.push_back("-shared"); in ConstructJob()
9378 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
9383 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
9384 CmdArgs.push_back(Args.MakeArgString(Loader)); in ConstructJob()
9388 CmdArgs.push_back("-o"); in ConstructJob()
9389 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9403 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
9405 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
9409 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob()
9422 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
9426 ToolChain.AddFastMathRuntimeIfAvailable(Args, CmdArgs); in ConstructJob()
9429 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
9430 Args.AddAllArgs(CmdArgs, options::OPT_u); in ConstructJob()
9432 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
9435 AddGoldPlugin(ToolChain, Args, CmdArgs, D.getLTOMode() == LTOK_Thin); in ConstructJob()
9438 CmdArgs.push_back("--no-demangle"); in ConstructJob()
9440 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
9441 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob()
9442 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
9444 getToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
9451 CmdArgs.push_back("-Bstatic"); in ConstructJob()
9452 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
9454 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
9455 CmdArgs.push_back("-lm"); in ConstructJob()
9463 CmdArgs.push_back("--start-group"); in ConstructJob()
9466 linkSanitizerRuntimeDeps(ToolChain, CmdArgs); in ConstructJob()
9469 linkXRayRuntimeDeps(ToolChain, Args, CmdArgs); in ConstructJob()
9483 CmdArgs.push_back("-lomp"); in ConstructJob()
9486 CmdArgs.push_back("-lgomp"); in ConstructJob()
9490 CmdArgs.push_back("-lrt"); in ConstructJob()
9493 CmdArgs.push_back("-liomp5"); in ConstructJob()
9501 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in ConstructJob()
9504 CmdArgs.push_back("-lpthread"); in ConstructJob()
9507 CmdArgs.push_back("--wrap=pthread_create"); in ConstructJob()
9509 CmdArgs.push_back("-lc"); in ConstructJob()
9513 CmdArgs.push_back("-lgloss"); in ConstructJob()
9516 CmdArgs.push_back("--end-group"); in ConstructJob()
9518 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in ConstructJob()
9522 CmdArgs.push_back("--as-needed"); in ConstructJob()
9523 CmdArgs.push_back("-lsoftfp"); in ConstructJob()
9524 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
9538 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()
9540 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
9544 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9584 ArgStringList CmdArgs; in ConstructJob() local
9595 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
9598 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
9601 CmdArgs.push_back("-s"); in ConstructJob()
9605 CmdArgs.push_back("--build-id"); in ConstructJob()
9608 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
9610 CmdArgs.push_back("-m"); in ConstructJob()
9612 CmdArgs.push_back("elf_i386_nacl"); in ConstructJob()
9614 CmdArgs.push_back("armelf_nacl"); in ConstructJob()
9616 CmdArgs.push_back("elf_x86_64_nacl"); in ConstructJob()
9618 CmdArgs.push_back("mipselelf_nacl"); in ConstructJob()
9624 CmdArgs.push_back("-static"); in ConstructJob()
9626 CmdArgs.push_back("-shared"); in ConstructJob()
9628 CmdArgs.push_back("-o"); in ConstructJob()
9629 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9632 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); in ConstructJob()
9633 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
9642 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
9645 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
9646 Args.AddAllArgs(CmdArgs, options::OPT_u); in ConstructJob()
9648 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
9651 CmdArgs.push_back("--no-demangle"); in ConstructJob()
9653 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
9660 CmdArgs.push_back("-Bstatic"); in ConstructJob()
9661 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
9663 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
9664 CmdArgs.push_back("-lm"); in ConstructJob()
9670 CmdArgs.push_back("--start-group"); in ConstructJob()
9671 CmdArgs.push_back("-lc"); in ConstructJob()
9681 CmdArgs.push_back("-lnacl"); in ConstructJob()
9683 CmdArgs.push_back("-lpthread"); in ConstructJob()
9686 CmdArgs.push_back("-lgcc"); in ConstructJob()
9687 CmdArgs.push_back("--as-needed"); in ConstructJob()
9689 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
9691 CmdArgs.push_back("-lgcc_s"); in ConstructJob()
9692 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
9698 CmdArgs.push_back("-lpnacl_legacy"); in ConstructJob()
9700 CmdArgs.push_back("--end-group"); in ConstructJob()
9710 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()
9711 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
9716 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9725 ArgStringList CmdArgs; in ConstructJob() local
9727 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
9729 CmdArgs.push_back("-o"); in ConstructJob()
9730 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9733 CmdArgs.push_back(II.getFilename()); in ConstructJob()
9736 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9745 ArgStringList CmdArgs; in ConstructJob() local
9748 CmdArgs.push_back("-o"); in ConstructJob()
9749 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9755 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crt1.o"))); in ConstructJob()
9756 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crti.o"))); in ConstructJob()
9757 CmdArgs.push_back( in ConstructJob()
9759 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o"))); in ConstructJob()
9762 Args.AddAllArgs(CmdArgs, in ConstructJob()
9765 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
9767 getToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
9771 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
9772 CmdArgs.push_back("-lm"); in ConstructJob()
9778 CmdArgs.push_back("-lpthread"); in ConstructJob()
9779 CmdArgs.push_back("-lc"); in ConstructJob()
9780 CmdArgs.push_back("-lCompilerRT-Generic"); in ConstructJob()
9781 CmdArgs.push_back("-L/usr/pkg/compiler-rt/lib"); in ConstructJob()
9782 CmdArgs.push_back( in ConstructJob()
9787 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9800 ArgStringList CmdArgs; in ConstructJob() local
9805 CmdArgs.push_back("--32"); in ConstructJob()
9807 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
9809 CmdArgs.push_back("-o"); in ConstructJob()
9810 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9813 CmdArgs.push_back(II.getFilename()); in ConstructJob()
9816 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9825 ArgStringList CmdArgs; in ConstructJob() local
9828 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
9830 CmdArgs.push_back("--eh-frame-hdr"); in ConstructJob()
9832 CmdArgs.push_back("-Bstatic"); in ConstructJob()
9835 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
9837 CmdArgs.push_back("-Bshareable"); in ConstructJob()
9839 CmdArgs.push_back("-dynamic-linker"); in ConstructJob()
9840 CmdArgs.push_back("/usr/libexec/ld-elf.so.2"); in ConstructJob()
9842 CmdArgs.push_back("--hash-style=gnu"); in ConstructJob()
9843 CmdArgs.push_back("--enable-new-dtags"); in ConstructJob()
9849 CmdArgs.push_back("-m"); in ConstructJob()
9850 CmdArgs.push_back("elf_i386"); in ConstructJob()
9854 CmdArgs.push_back("-o"); in ConstructJob()
9855 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
9863 CmdArgs.push_back( in ConstructJob()
9867 CmdArgs.push_back( in ConstructJob()
9870 CmdArgs.push_back( in ConstructJob()
9874 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crti.o"))); in ConstructJob()
9876 CmdArgs.push_back( in ConstructJob()
9879 CmdArgs.push_back( in ConstructJob()
9883 Args.AddAllArgs(CmdArgs, in ConstructJob()
9886 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
9889 CmdArgs.push_back("-L/usr/lib/gcc50"); in ConstructJob()
9892 CmdArgs.push_back("-rpath"); in ConstructJob()
9893 CmdArgs.push_back("/usr/lib/gcc50"); in ConstructJob()
9897 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
9898 CmdArgs.push_back("-lm"); in ConstructJob()
9902 CmdArgs.push_back("-lpthread"); in ConstructJob()
9905 CmdArgs.push_back("-lc"); in ConstructJob()
9910 CmdArgs.push_back("-lgcc"); in ConstructJob()
9911 CmdArgs.push_back("-lgcc_eh"); in ConstructJob()
9914 CmdArgs.push_back("-lgcc_pic"); in ConstructJob()
9916 CmdArgs.push_back("-lgcc"); in ConstructJob()
9918 CmdArgs.push_back("-lgcc"); in ConstructJob()
9919 CmdArgs.push_back("--as-needed"); in ConstructJob()
9920 CmdArgs.push_back("-lgcc_pic"); in ConstructJob()
9921 CmdArgs.push_back("--no-as-needed"); in ConstructJob()
9928 CmdArgs.push_back( in ConstructJob()
9931 CmdArgs.push_back( in ConstructJob()
9933 CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o"))); in ConstructJob()
9936 getToolChain().addProfileRTLibs(Args, CmdArgs); in ConstructJob()
9939 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
9967 ArgStringList CmdArgs; in ConstructJob() local
9972 CmdArgs.push_back( in ConstructJob()
9977 CmdArgs.push_back("-defaultlib:libcmt"); in ConstructJob()
10002 CmdArgs.push_back( in ConstructJob()
10008 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") + in ConstructJob()
10015 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") + in ConstructJob()
10021 CmdArgs.push_back(Args.MakeArgString("-libpath:" + LibPath)); in ConstructJob()
10023 CmdArgs.push_back("-nologo"); in ConstructJob()
10027 CmdArgs.push_back("-debug"); in ConstructJob()
10032 CmdArgs.push_back(Args.MakeArgString("-dll")); in ConstructJob()
10036 CmdArgs.push_back(Args.MakeArgString(std::string("-implib:") + ImplibName)); in ConstructJob()
10040 CmdArgs.push_back(Args.MakeArgString("-debug")); in ConstructJob()
10041 CmdArgs.push_back(Args.MakeArgString("-incremental:no")); in ConstructJob()
10044 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
10047 CmdArgs.push_back(Args.MakeArgString("-include:___asan_seh_interceptor")); in ConstructJob()
10049 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "asan_dll_thunk")); in ConstructJob()
10052 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
10056 Args.AddAllArgValues(CmdArgs, options::OPT__SLASH_link); in ConstructJob()
10060 CmdArgs.push_back("-nodefaultlib:vcomp.lib"); in ConstructJob()
10061 CmdArgs.push_back("-nodefaultlib:vcompd.lib"); in ConstructJob()
10062 CmdArgs.push_back(Args.MakeArgString(std::string("-libpath:") + in ConstructJob()
10066 CmdArgs.push_back("-defaultlib:libomp.lib"); in ConstructJob()
10069 CmdArgs.push_back("-defaultlib:libiomp5md.lib"); in ConstructJob()
10082 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob()
10088 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
10102 CmdArgs.push_back(LinkLibArg); in ConstructJob()
10108 A.renderAsInput(Args, CmdArgs); in ConstructJob()
10111 TC.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
10134 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10149 ArgStringList CmdArgs; in GetCommand() local
10150 CmdArgs.push_back("/nologo"); in GetCommand()
10151 CmdArgs.push_back("/c"); // Compile only. in GetCommand()
10152 CmdArgs.push_back("/W0"); // No warnings. in GetCommand()
10158 Args.AddAllArgs(CmdArgs, {options::OPT_D, options::OPT_U, options::OPT_I}); in GetCommand()
10162 CmdArgs.push_back(A->getOption().getID() == options::OPT_fbuiltin ? "/Oi" in GetCommand()
10166 CmdArgs.push_back("/Od"); in GetCommand()
10168 CmdArgs.push_back("/Og"); in GetCommand()
10172 CmdArgs.push_back("/Os"); in GetCommand()
10174 CmdArgs.push_back("/Ot"); in GetCommand()
10176 CmdArgs.push_back("/Ob2"); in GetCommand()
10181 CmdArgs.push_back(A->getOption().getID() == options::OPT_fomit_frame_pointer in GetCommand()
10185 CmdArgs.push_back("/GF"); in GetCommand()
10192 CmdArgs.push_back("/GR-"); in GetCommand()
10196 CmdArgs.push_back("/GS-"); in GetCommand()
10200 CmdArgs.push_back(A->getOption().getID() == options::OPT_ffunction_sections in GetCommand()
10205 CmdArgs.push_back( in GetCommand()
10208 CmdArgs.push_back("/Zs"); in GetCommand()
10211 CmdArgs.push_back("/Z7"); in GetCommand()
10216 CmdArgs.push_back(Args.MakeArgString(std::string("/FI") + Include)); in GetCommand()
10219 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_LD); in GetCommand()
10220 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_LDd); in GetCommand()
10221 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_GX); in GetCommand()
10222 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_GX_); in GetCommand()
10223 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_EH); in GetCommand()
10224 Args.AddAllArgs(CmdArgs, options::OPT__SLASH_Zl); in GetCommand()
10229 A->render(Args, CmdArgs); in GetCommand()
10233 Args.AddAllArgs(CmdArgs, options::OPT_UNKNOWN); in GetCommand()
10239 CmdArgs.push_back(II.getType() == types::TY_C ? "/Tc" : "/Tp"); in GetCommand()
10241 CmdArgs.push_back(II.getFilename()); in GetCommand()
10243 II.getInputArg().renderAsInput(Args, CmdArgs); in GetCommand()
10249 CmdArgs.push_back(Fo); in GetCommand()
10255 CmdArgs, Inputs); in GetCommand()
10265 ArgStringList CmdArgs; in ConstructJob() local
10268 CmdArgs.push_back("--32"); in ConstructJob()
10270 CmdArgs.push_back("--64"); in ConstructJob()
10273 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
10275 CmdArgs.push_back("-o"); in ConstructJob()
10276 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10279 CmdArgs.push_back(II.getFilename()); in ConstructJob()
10282 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10290 ArgStringList &CmdArgs) const { in AddLibGCC()
10292 CmdArgs.push_back("-lmingwthrd"); in AddLibGCC()
10293 CmdArgs.push_back("-lmingw32"); in AddLibGCC()
10304 CmdArgs.push_back("-lgcc"); in AddLibGCC()
10305 CmdArgs.push_back("-lgcc_eh"); in AddLibGCC()
10307 CmdArgs.push_back("-lgcc_s"); in AddLibGCC()
10308 CmdArgs.push_back("-lgcc"); in AddLibGCC()
10311 AddRunTimeLibs(getToolChain(), getToolChain().getDriver(), CmdArgs, Args); in AddLibGCC()
10314 CmdArgs.push_back("-lmoldname"); in AddLibGCC()
10315 CmdArgs.push_back("-lmingwex"); in AddLibGCC()
10316 CmdArgs.push_back("-lmsvcrt"); in AddLibGCC()
10328 ArgStringList CmdArgs; in ConstructJob() local
10340 CmdArgs.push_back("-flavor"); in ConstructJob()
10341 CmdArgs.push_back("gnu"); in ConstructJob()
10347 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
10350 CmdArgs.push_back("-s"); in ConstructJob()
10352 CmdArgs.push_back("-m"); in ConstructJob()
10354 CmdArgs.push_back("i386pe"); in ConstructJob()
10356 CmdArgs.push_back("i386pep"); in ConstructJob()
10358 CmdArgs.push_back("thumb2pe"); in ConstructJob()
10361 CmdArgs.push_back("--subsystem"); in ConstructJob()
10362 CmdArgs.push_back("windows"); in ConstructJob()
10364 CmdArgs.push_back("--subsystem"); in ConstructJob()
10365 CmdArgs.push_back("console"); in ConstructJob()
10369 CmdArgs.push_back("-Bstatic"); in ConstructJob()
10372 CmdArgs.push_back("--dll"); in ConstructJob()
10374 CmdArgs.push_back("--shared"); in ConstructJob()
10375 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
10377 CmdArgs.push_back("-e"); in ConstructJob()
10379 CmdArgs.push_back("_DllMainCRTStartup@12"); in ConstructJob()
10381 CmdArgs.push_back("DllMainCRTStartup"); in ConstructJob()
10382 CmdArgs.push_back("--enable-auto-image-base"); in ConstructJob()
10386 CmdArgs.push_back("-o"); in ConstructJob()
10387 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10389 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructJob()
10391 Args.AddLastArg(CmdArgs, options::OPT_r); in ConstructJob()
10392 Args.AddLastArg(CmdArgs, options::OPT_s); in ConstructJob()
10393 Args.AddLastArg(CmdArgs, options::OPT_t); in ConstructJob()
10394 Args.AddAllArgs(CmdArgs, options::OPT_u_Group); in ConstructJob()
10395 Args.AddLastArg(CmdArgs, options::OPT_Z_Flag); in ConstructJob()
10399 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("dllcrt2.o"))); in ConstructJob()
10402 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crt2u.o"))); in ConstructJob()
10404 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crt2.o"))); in ConstructJob()
10407 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("gcrt2.o"))); in ConstructJob()
10408 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtbegin.o"))); in ConstructJob()
10411 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
10412 TC.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
10413 AddLinkerInputs(TC, Inputs, Args, CmdArgs); in ConstructJob()
10424 CmdArgs.push_back("-Bstatic"); in ConstructJob()
10425 TC.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
10427 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
10433 CmdArgs.push_back("--start-group"); in ConstructJob()
10438 CmdArgs.push_back("-lssp_nonshared"); in ConstructJob()
10439 CmdArgs.push_back("-lssp"); in ConstructJob()
10442 CmdArgs.push_back("-lgomp"); in ConstructJob()
10444 AddLibGCC(Args, CmdArgs); in ConstructJob()
10447 CmdArgs.push_back("-lgmon"); in ConstructJob()
10450 CmdArgs.push_back("-lpthread"); in ConstructJob()
10454 CmdArgs.push_back("-lgdi32"); in ConstructJob()
10455 CmdArgs.push_back("-lcomdlg32"); in ConstructJob()
10457 CmdArgs.push_back("-ladvapi32"); in ConstructJob()
10458 CmdArgs.push_back("-lshell32"); in ConstructJob()
10459 CmdArgs.push_back("-luser32"); in ConstructJob()
10460 CmdArgs.push_back("-lkernel32"); in ConstructJob()
10463 CmdArgs.push_back("--end-group"); in ConstructJob()
10465 AddLibGCC(Args, CmdArgs); in ConstructJob()
10470 TC.AddFastMathRuntimeIfAvailable(Args, CmdArgs); in ConstructJob()
10472 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtend.o"))); in ConstructJob()
10476 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10488 ArgStringList CmdArgs; in ConstructJob() local
10490 CmdArgs.push_back("-o"); in ConstructJob()
10491 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10493 CmdArgs.push_back("-c"); in ConstructJob()
10496 CmdArgs.push_back("-v"); in ConstructJob()
10500 CmdArgs.push_back("-g"); in ConstructJob()
10504 CmdArgs.push_back("-fverbose-asm"); in ConstructJob()
10506 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
10509 CmdArgs.push_back(II.getFilename()); in ConstructJob()
10512 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10520 ArgStringList CmdArgs; in ConstructJob() local
10523 CmdArgs.push_back("-o"); in ConstructJob()
10524 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10530 CmdArgs.push_back("-v"); in ConstructJob()
10535 CmdArgs.push_back("-fexceptions"); in ConstructJob()
10537 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
10540 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10551 ArgStringList CmdArgs; in ConstructJob() local
10561 CmdArgs.push_back("--32"); in ConstructJob()
10564 CmdArgs.push_back("--64"); in ConstructJob()
10568 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
10570 CmdArgs.push_back("-o"); in ConstructJob()
10571 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10574 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
10579 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10592 ArgStringList CmdArgs; in ConstructJob() local
10604 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
10607 CmdArgs.push_back("-pie"); in ConstructJob()
10609 CmdArgs.push_back("-export-dynamic"); in ConstructJob()
10611 CmdArgs.push_back("--strip-all"); in ConstructJob()
10613 CmdArgs.push_back("-m"); in ConstructJob()
10620 CmdArgs.push_back("thumb2pe"); in ConstructJob()
10623 CmdArgs.push_back("i386pe"); in ConstructJob()
10627 CmdArgs.push_back("i386pep"); in ConstructJob()
10645 CmdArgs.push_back("-shared"); in ConstructJob()
10646 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
10648 CmdArgs.push_back("--enable-auto-image-base"); in ConstructJob()
10650 CmdArgs.push_back("--entry"); in ConstructJob()
10651 CmdArgs.push_back(Args.MakeArgString(EntryPoint)); in ConstructJob()
10655 CmdArgs.push_back(Args.hasArg(options::OPT_static) ? "-Bstatic" in ConstructJob()
10659 CmdArgs.push_back("--entry"); in ConstructJob()
10660 CmdArgs.push_back(Args.MakeArgString(EntryPoint)); in ConstructJob()
10667 CmdArgs.push_back("--allow-multiple-definition"); in ConstructJob()
10669 CmdArgs.push_back("-o"); in ConstructJob()
10670 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10676 CmdArgs.push_back("--out-implib"); in ConstructJob()
10677 CmdArgs.push_back(Args.MakeArgString(ImpLib)); in ConstructJob()
10686 CmdArgs.push_back(Args.MakeArgString(CRTPath + CRTBegin)); in ConstructJob()
10689 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructJob()
10690 TC.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
10691 AddLinkerInputs(TC, Inputs, Args, CmdArgs); in ConstructJob()
10698 CmdArgs.push_back("-Bstatic"); in ConstructJob()
10699 TC.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
10701 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
10707 CmdArgs.push_back("-lmsvcrt"); in ConstructJob()
10708 AddRunTimeLibs(TC, D, CmdArgs, Args); in ConstructJob()
10715 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "asan_dll_thunk")); in ConstructJob()
10718 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
10721 CmdArgs.push_back(Args.MakeArgString("--undefined")); in ConstructJob()
10722 CmdArgs.push_back(Args.MakeArgString(TC.getArch() == llvm::Triple::x86 in ConstructJob()
10730 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10738 ArgStringList CmdArgs; in ConstructJob() local
10746 CmdArgs.push_back("-E"); in ConstructJob()
10749 CmdArgs.push_back("-S"); in ConstructJob()
10750 CmdArgs.push_back("-fno-exceptions"); // Always do this even if unspecified. in ConstructJob()
10752 CmdArgs.push_back("-DMYRIAD2"); in ConstructJob()
10757 Args.AddAllArgs(CmdArgs, {options::OPT_I_Group, options::OPT_clang_i_Group, in ConstructJob()
10774 CmdArgs.push_back("-MT"); in ConstructJob()
10775 CmdArgs.push_back(Args.MakeArgString(A->getValue())); in ConstructJob()
10779 CmdArgs.push_back(II.getFilename()); in ConstructJob()
10780 CmdArgs.push_back("-o"); in ConstructJob()
10781 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10786 CmdArgs, Inputs)); in ConstructJob()
10794 ArgStringList CmdArgs; in ConstructJob() local
10801 CmdArgs.push_back("-no6thSlotCompression"); in ConstructJob()
10804 CmdArgs.push_back( in ConstructJob()
10806 CmdArgs.push_back("-noSPrefixing"); in ConstructJob()
10807 CmdArgs.push_back("-a"); // Mystery option. in ConstructJob()
10808 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
10811 CmdArgs.push_back( in ConstructJob()
10814 CmdArgs.push_back("-elf"); // Output format. in ConstructJob()
10815 CmdArgs.push_back(II.getFilename()); in ConstructJob()
10816 CmdArgs.push_back( in ConstructJob()
10822 CmdArgs, Inputs)); in ConstructJob()
10833 ArgStringList CmdArgs; in ConstructJob() local
10840 CmdArgs.push_back("-EB"); in ConstructJob()
10842 CmdArgs.push_back("-EL"); in ConstructJob()
10854 CmdArgs.push_back("-s"); in ConstructJob()
10856 CmdArgs.push_back("-o"); in ConstructJob()
10857 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10862 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crti.o"))); in ConstructJob()
10863 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtbegin.o"))); in ConstructJob()
10866 Args.AddAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, in ConstructJob()
10870 TC.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
10872 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); in ConstructJob()
10876 CmdArgs.push_back("-lstdc++"); in ConstructJob()
10878 CmdArgs.push_back("--start-group"); in ConstructJob()
10879 CmdArgs.push_back("-lc"); in ConstructJob()
10881 CmdArgs.push_back("-lrtemscpu"); in ConstructJob()
10882 CmdArgs.push_back("-lrtemsbsp"); in ConstructJob()
10883 CmdArgs.push_back("--end-group"); in ConstructJob()
10885 CmdArgs.push_back("-lc"); in ConstructJob()
10887 CmdArgs.push_back("-lgcc"); in ConstructJob()
10890 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtend.o"))); in ConstructJob()
10891 CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtn.o"))); in ConstructJob()
10897 CmdArgs, Inputs)); in ConstructJob()
10906 ArgStringList CmdArgs; in ConstructJob() local
10908 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, options::OPT_Xassembler); in ConstructJob()
10910 CmdArgs.push_back("-o"); in ConstructJob()
10911 CmdArgs.push_back(Output.getFilename()); in ConstructJob()
10916 CmdArgs.push_back(Input.getFilename()); in ConstructJob()
10920 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
10923 static void AddPS4SanitizerArgs(const ToolChain &TC, ArgStringList &CmdArgs) { in AddPS4SanitizerArgs() argument
10926 CmdArgs.push_back("-lSceDbgUBSanitizer_stub_weak"); in AddPS4SanitizerArgs()
10929 CmdArgs.push_back("-lSceDbgAddressSanitizer_stub_weak"); in AddPS4SanitizerArgs()
10941 ArgStringList CmdArgs; in ConstructPS4LinkJob() local
10952 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructPS4LinkJob()
10955 CmdArgs.push_back("-pie"); in ConstructPS4LinkJob()
10958 CmdArgs.push_back("-export-dynamic"); in ConstructPS4LinkJob()
10960 CmdArgs.push_back("--oformat=so"); in ConstructPS4LinkJob()
10963 CmdArgs.push_back("-o"); in ConstructPS4LinkJob()
10964 CmdArgs.push_back(Output.getFilename()); in ConstructPS4LinkJob()
10969 AddPS4SanitizerArgs(ToolChain, CmdArgs); in ConstructPS4LinkJob()
10971 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructPS4LinkJob()
10972 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructPS4LinkJob()
10973 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructPS4LinkJob()
10974 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructPS4LinkJob()
10975 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructPS4LinkJob()
10976 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructPS4LinkJob()
10979 CmdArgs.push_back("--no-demangle"); in ConstructPS4LinkJob()
10981 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructPS4LinkJob()
10984 CmdArgs.push_back("-lpthread"); in ConstructPS4LinkJob()
10989 C.addCommand(llvm::make_unique<Command>(JA, T, Exec, CmdArgs, Inputs)); in ConstructPS4LinkJob()
11000 ArgStringList CmdArgs; in ConstructGoldLinkJob() local
11011 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructGoldLinkJob()
11014 CmdArgs.push_back("-pie"); in ConstructGoldLinkJob()
11017 CmdArgs.push_back("-Bstatic"); in ConstructGoldLinkJob()
11020 CmdArgs.push_back("-export-dynamic"); in ConstructGoldLinkJob()
11021 CmdArgs.push_back("--eh-frame-hdr"); in ConstructGoldLinkJob()
11023 CmdArgs.push_back("-Bshareable"); in ConstructGoldLinkJob()
11025 CmdArgs.push_back("-dynamic-linker"); in ConstructGoldLinkJob()
11026 CmdArgs.push_back("/libexec/ld-elf.so.1"); in ConstructGoldLinkJob()
11028 CmdArgs.push_back("--enable-new-dtags"); in ConstructGoldLinkJob()
11032 CmdArgs.push_back("-o"); in ConstructGoldLinkJob()
11033 CmdArgs.push_back(Output.getFilename()); in ConstructGoldLinkJob()
11038 AddPS4SanitizerArgs(ToolChain, CmdArgs); in ConstructGoldLinkJob()
11051 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructGoldLinkJob()
11053 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructGoldLinkJob()
11063 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructGoldLinkJob()
11066 Args.AddAllArgs(CmdArgs, options::OPT_L); in ConstructGoldLinkJob()
11067 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructGoldLinkJob()
11068 Args.AddAllArgs(CmdArgs, options::OPT_T_Group); in ConstructGoldLinkJob()
11069 Args.AddAllArgs(CmdArgs, options::OPT_e); in ConstructGoldLinkJob()
11070 Args.AddAllArgs(CmdArgs, options::OPT_s); in ConstructGoldLinkJob()
11071 Args.AddAllArgs(CmdArgs, options::OPT_t); in ConstructGoldLinkJob()
11072 Args.AddAllArgs(CmdArgs, options::OPT_r); in ConstructGoldLinkJob()
11075 CmdArgs.push_back("--no-demangle"); in ConstructGoldLinkJob()
11077 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructGoldLinkJob()
11082 CmdArgs.push_back("-lkernel"); in ConstructGoldLinkJob()
11084 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructGoldLinkJob()
11086 CmdArgs.push_back("-lm_p"); in ConstructGoldLinkJob()
11088 CmdArgs.push_back("-lm"); in ConstructGoldLinkJob()
11093 CmdArgs.push_back("-lgcc_p"); in ConstructGoldLinkJob()
11095 CmdArgs.push_back("-lcompiler_rt"); in ConstructGoldLinkJob()
11097 CmdArgs.push_back("-lstdc++"); in ConstructGoldLinkJob()
11099 CmdArgs.push_back("-lgcc_eh_p"); in ConstructGoldLinkJob()
11101 CmdArgs.push_back("--as-needed"); in ConstructGoldLinkJob()
11102 CmdArgs.push_back("-lstdc++"); in ConstructGoldLinkJob()
11103 CmdArgs.push_back("--no-as-needed"); in ConstructGoldLinkJob()
11108 CmdArgs.push_back("-lpthread_p"); in ConstructGoldLinkJob()
11110 CmdArgs.push_back("-lpthread"); in ConstructGoldLinkJob()
11115 CmdArgs.push_back("-lc"); in ConstructGoldLinkJob()
11118 CmdArgs.push_back("--start-group"); in ConstructGoldLinkJob()
11119 CmdArgs.push_back("-lc_p"); in ConstructGoldLinkJob()
11120 CmdArgs.push_back("-lpthread_p"); in ConstructGoldLinkJob()
11121 CmdArgs.push_back("--end-group"); in ConstructGoldLinkJob()
11123 CmdArgs.push_back("-lc_p"); in ConstructGoldLinkJob()
11126 CmdArgs.push_back("-lgcc_p"); in ConstructGoldLinkJob()
11129 CmdArgs.push_back("--start-group"); in ConstructGoldLinkJob()
11130 CmdArgs.push_back("-lc"); in ConstructGoldLinkJob()
11131 CmdArgs.push_back("-lpthread"); in ConstructGoldLinkJob()
11132 CmdArgs.push_back("--end-group"); in ConstructGoldLinkJob()
11134 CmdArgs.push_back("-lc"); in ConstructGoldLinkJob()
11136 CmdArgs.push_back("-lcompiler_rt"); in ConstructGoldLinkJob()
11140 CmdArgs.push_back("-lstdc++"); in ConstructGoldLinkJob()
11142 CmdArgs.push_back("-lgcc_eh_p"); in ConstructGoldLinkJob()
11144 CmdArgs.push_back("--as-needed"); in ConstructGoldLinkJob()
11145 CmdArgs.push_back("-lstdc++"); in ConstructGoldLinkJob()
11146 CmdArgs.push_back("--no-as-needed"); in ConstructGoldLinkJob()
11152 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtendS.o"))); in ConstructGoldLinkJob()
11154 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructGoldLinkJob()
11155 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructGoldLinkJob()
11165 C.addCommand(llvm::make_unique<Command>(JA, T, Exec, CmdArgs, Inputs)); in ConstructGoldLinkJob()
11217 ArgStringList CmdArgs; in ConstructJob() local
11218 CmdArgs.push_back(TC.getTriple().isArch64Bit() ? "-m64" : "-m32"); in ConstructJob()
11223 CmdArgs.push_back("-g"); in ConstructJob()
11224 CmdArgs.push_back("--dont-merge-basicblocks"); in ConstructJob()
11225 CmdArgs.push_back("--return-at-end"); in ConstructJob()
11250 CmdArgs.push_back(Args.MakeArgString(llvm::Twine("-O") + OOpt)); in ConstructJob()
11254 CmdArgs.push_back("-O0"); in ConstructJob()
11257 CmdArgs.push_back("--gpu-name"); in ConstructJob()
11258 CmdArgs.push_back(Args.MakeArgString(gpu_arch)); in ConstructJob()
11259 CmdArgs.push_back("--output-file"); in ConstructJob()
11260 CmdArgs.push_back(Args.MakeArgString(Output.getFilename())); in ConstructJob()
11262 CmdArgs.push_back(Args.MakeArgString(II.getFilename())); in ConstructJob()
11265 CmdArgs.push_back(Args.MakeArgString(A)); in ConstructJob()
11268 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()
11283 ArgStringList CmdArgs; in ConstructJob() local
11284 CmdArgs.push_back("--cuda"); in ConstructJob()
11285 CmdArgs.push_back(TC.getTriple().isArch64Bit() ? "-64" : "-32"); in ConstructJob()
11286 CmdArgs.push_back(Args.MakeArgString("--create")); in ConstructJob()
11287 CmdArgs.push_back(Args.MakeArgString(Output.getFilename())); in ConstructJob()
11297 CmdArgs.push_back(Args.MakeArgString(llvm::Twine("--image=profile=") + in ConstructJob()
11302 CmdArgs.push_back(Args.MakeArgString(A)); in ConstructJob()
11305 C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs)); in ConstructJob()