reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Driver/ToolChains/Darwin.cpp
  447   if (Args.hasArg(options::OPT_ccc_arcmt_check,
  449     for (const auto &Arg : Args)
  452         Args.MakeArgString(getToolChain().GetProgramPath("touch"));
  460   AddLinkArgs(C, Args, CmdArgs, Inputs);
  464   if (Args.hasFlag(options::OPT_fsave_optimization_record,
  475             Args.getLastArg(options::OPT_fsave_optimization_record_EQ))
  480     CmdArgs.push_back(Args.MakeArgString(F));
  482     if (getLastProfileUseArg(Args)) {
  487               Args.getLastArg(options::OPT_fdiagnostics_hotness_threshold_EQ)) {
  491         CmdArgs.push_back(Args.MakeArgString(Opt));
  496             Args.getLastArg(options::OPT_foptimization_record_passes_EQ)) {
  500       CmdArgs.push_back(Args.MakeArgString(Passes));
  504             Args.getLastArg(options::OPT_fsave_optimization_record_EQ)) {
  508       CmdArgs.push_back(Args.MakeArgString(Format));
  514           Args.getLastArg(options::OPT_moutline, options::OPT_mno_outline)) {
  516       if (getMachOToolChain().getMachOArchName(Args) == "arm64") {
  535       getStatsFileName(Args, Output, Inputs[0], getToolChain().getDriver());
  538     CmdArgs.push_back(Args.MakeArgString("-lto-stats-file=" + StatsFile.str()));
  543   Args.AddAllArgs(CmdArgs, {options::OPT_d_Flag, options::OPT_s, options::OPT_t,
  550   if (Args.hasArg(options::OPT_ObjC) || Args.hasArg(options::OPT_ObjCXX))
  550   if (Args.hasArg(options::OPT_ObjC) || Args.hasArg(options::OPT_ObjCXX))
  556   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))
  557     getMachOToolChain().addStartObjectFileArgs(Args, CmdArgs);
  559   Args.AddAllArgs(CmdArgs, options::OPT_L);
  561   AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
  579   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs))
  580     addOpenMPRuntime(CmdArgs, getToolChain(), Args);
  582   if (isObjCRuntimeLinked(Args) &&
  583       !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
  585     getMachOToolChain().AddLinkARCArgs(Args, CmdArgs);
  599   if (Args.hasArg(options::OPT_fnested_functions))
  602   getMachOToolChain().addProfileRTLibs(Args, CmdArgs);
  605           getLTOParallelism(Args, getToolChain().getDriver())) {
  607     CmdArgs.push_back(Args.MakeArgString("-threads=" + Twine(Parallelism)));
  610   if (getToolChain().ShouldLinkCXXStdlib(Args))
  611     getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);
  614       Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs);
  615   bool ForceLinkBuiltins = Args.hasArg(options::OPT_fapple_link_rtlib);
  622       getMachOToolChain().AddLinkRuntimeLib(Args, CmdArgs, "builtins");
  625       getMachOToolChain().AddLinkRuntimeLibArgs(Args, CmdArgs,
  629       Args.ClaimAllArgs(options::OPT_pthread);
  630       Args.ClaimAllArgs(options::OPT_pthreads);
  634   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
  638   Args.AddAllArgs(CmdArgs, options::OPT_T_Group);
  639   Args.AddAllArgs(CmdArgs, options::OPT_F);
  642   for (const Arg *A : Args.filtered(options::OPT_iframework))
  643     CmdArgs.push_back(Args.MakeArgString(std::string("-F") + A->getValue()));
  645   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
  646     if (Arg *A = Args.getLastArg(options::OPT_fveclib)) {
  654   const char *Exec = Args.MakeArgString(getToolChain().GetLinkerPath());