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

References

tools/clang/lib/Driver/ToolChains/MinGW.cpp
  104   Args.ClaimAllArgs(options::OPT_g_Group);
  106   Args.ClaimAllArgs(options::OPT_emit_llvm);
  109   Args.ClaimAllArgs(options::OPT_w);
  112     CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot));
  114   if (Args.hasArg(options::OPT_s))
  137   if (Args.hasArg(options::OPT_mwindows)) {
  140   } else if (Args.hasArg(options::OPT_mconsole)) {
  145   if (Args.hasArg(options::OPT_mdll))
  147   else if (Args.hasArg(options::OPT_shared))
  149   if (Args.hasArg(options::OPT_static))
  153   if (Args.hasArg(options::OPT_mdll) || Args.hasArg(options::OPT_shared)) {
  153   if (Args.hasArg(options::OPT_mdll) || Args.hasArg(options::OPT_shared)) {
  165   Args.AddAllArgs(CmdArgs, options::OPT_e);
  167   Args.AddLastArg(CmdArgs, options::OPT_r);
  168   Args.AddLastArg(CmdArgs, options::OPT_s);
  169   Args.AddLastArg(CmdArgs, options::OPT_t);
  170   Args.AddAllArgs(CmdArgs, options::OPT_u_Group);
  171   Args.AddLastArg(CmdArgs, options::OPT_Z_Flag);
  173   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
  174     if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_mdll)) {
  174     if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_mdll)) {
  175       CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("dllcrt2.o")));
  177       if (Args.hasArg(options::OPT_municode))
  178         CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crt2u.o")));
  180         CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crt2.o")));
  182     if (Args.hasArg(options::OPT_pg))
  183       CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("gcrt2.o")));
  184     CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtbegin.o")));
  187   Args.AddAllArgs(CmdArgs, options::OPT_L);
  188   TC.AddFilePathLibArgs(Args, CmdArgs);
  189   AddLinkerInputs(TC, Inputs, Args, CmdArgs, JA);
  193   if (TC.ShouldLinkCXXStdlib(Args)) {
  194     bool OnlyLibstdcxxStatic = Args.hasArg(options::OPT_static_libstdcxx) &&
  195                                !Args.hasArg(options::OPT_static);
  198     TC.AddCXXStdlibLibArgs(Args, CmdArgs);
  204   for (auto Lib : Args.getAllArgValues(options::OPT_l)) {
  211   if (!Args.hasArg(options::OPT_nostdlib)) {
  212     if (!Args.hasArg(options::OPT_nodefaultlibs)) {
  213       if (Args.hasArg(options::OPT_static))
  216       if (Args.hasArg(options::OPT_fstack_protector) ||
  217           Args.hasArg(options::OPT_fstack_protector_strong) ||
  218           Args.hasArg(options::OPT_fstack_protector_all)) {
  223       if (Args.hasFlag(options::OPT_fopenmp, options::OPT_fopenmp_EQ,
  225         switch (TC.getDriver().getOpenMPRuntime(Args)) {
  241       AddLibGCC(Args, CmdArgs);
  243       if (Args.hasArg(options::OPT_pg))
  246       if (Args.hasArg(options::OPT_pthread))
  251         CmdArgs.push_back(TC.getCompilerRTArgString(Args, "asan_dynamic",
  254             TC.getCompilerRTArgString(Args, "asan_dynamic_runtime_thunk"));
  263             TC.getCompilerRTArgString(Args, "asan_dynamic_runtime_thunk"));
  267       TC.addProfileRTLibs(Args, CmdArgs);
  273         if (Args.hasArg(options::OPT_mwindows)) {
  283       if (Args.hasArg(options::OPT_static))
  286         AddLibGCC(Args, CmdArgs);
  289     if (!Args.hasArg(options::OPT_nostartfiles)) {
  291       TC.AddFastMathRuntimeIfAvailable(Args, CmdArgs);
  293       CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath("crtend.o")));
  296   const char *Exec = Args.MakeArgString(TC.GetLinkerPath());