• Home
  • Raw
  • Download

Lines Matching refs:ToolChain

235 static void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs,  in AddLinkerInputs()
304 const ToolChain *AuxToolChain) const { in AddPreprocessingOptions()
745 arm::FloatABI arm::getARMFloatABI(const ToolChain &TC, const ArgList &Args) { in getARMFloatABI()
847 static void getARMTargetFeatures(const ToolChain &TC, in getARMTargetFeatures()
1981 static void AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args, in AddGoldPlugin() argument
1988 ToolChain.getDriver().Dir + "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold.so"; in AddGoldPlugin()
1995 std::string CPU = getCPUName(Args, ToolChain.getTriple()); in AddGoldPlugin()
2538 static void getTargetFeatures(const ToolChain &TC, const llvm::Triple &Triple, in getTargetFeatures()
2638 const ToolChain &TC, bool KernelOrKext, in addExceptionArgs()
2684 ToolChain::RTTIMode RTTIMode = TC.getRTTIMode(); in addExceptionArgs()
2688 if (RTTIMode == ToolChain::RM_DisabledExplicitly) { in addExceptionArgs()
2693 } else if (RTTIMode == ToolChain::RM_EnabledImplicitly) in addExceptionArgs()
2696 assert(TC.getRTTIMode() != ToolChain::RM_DisabledImplicitly); in addExceptionArgs()
2708 static bool ShouldDisableAutolink(const ArgList &Args, const ToolChain &TC) { in ShouldDisableAutolink()
2720 const ToolChain &TC) { in ShouldDisableDwarfDirectory()
2973 static void addClangRT(const ToolChain &TC, const ArgList &Args, in addClangRT()
3001 static OpenMPRuntimeKind getOpenMPRuntime(const ToolChain &TC, in getOpenMPRuntime()
3027 static void addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, in addOpenMPRuntime()
3049 static void addSanitizerRuntime(const ToolChain &TC, const ArgList &Args, in addSanitizerRuntime()
3061 static bool addSanitizerDynamicList(const ToolChain &TC, const ArgList &Args, in addSanitizerDynamicList()
3072 static void linkSanitizerRuntimeDeps(const ToolChain &TC, in linkSanitizerRuntimeDeps()
3086 collectSanitizerRuntimes(const ToolChain &TC, const ArgList &Args, in collectSanitizerRuntimes()
3153 static bool addSanitizerRuntimes(const ToolChain &TC, const ArgList &Args, in addSanitizerRuntimes()
3184 static bool addXRayRuntime(const ToolChain &TC, const ArgList &Args, in addXRayRuntime()
3196 static void linkXRayRuntimeDeps(const ToolChain &TC, const ArgList &Args, in linkXRayRuntimeDeps()
3203 if (TC.GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) in linkXRayRuntimeDeps()
3319 static void SplitDebugInfo(const ToolChain &TC, Compilation &C, const Tool &T, in SplitDebugInfo()
3446 VersionTuple visualstudio::getMSVCVersion(const Driver *D, const ToolChain &TC, in getMSVCVersion()
3599 static void addPS4ProfileRTArgs(const ToolChain &TC, const ArgList &Args, in addPS4ProfileRTArgs()
3621 ParsePICArgs(const ToolChain &ToolChain, const llvm::Triple &Triple, in ParsePICArgs() argument
3625 bool PIE = ToolChain.isPIEDefault(); in ParsePICArgs()
3626 bool PIC = PIE || ToolChain.isPICDefault(); in ParsePICArgs()
3628 if (ToolChain.getTriple().isOSBinFormatMachO() && in ParsePICArgs()
3637 if (ToolChain.getTriple().isAndroid()) { in ParsePICArgs()
3638 switch (ToolChain.getArch()) { in ParsePICArgs()
3663 if (ToolChain.getTriple().getOS() == llvm::Triple::OpenBSD) { in ParsePICArgs()
3664 switch (ToolChain.getArch()) { in ParsePICArgs()
3694 if (!ToolChain.isPICDefaultForced()) { in ParsePICArgs()
3711 ToolChain.getDriver().Diag(diag::warn_drv_ps4_force_pic) in ParsePICArgs()
3722 if (PIC && (ToolChain.getTriple().isOSDarwin() || Triple.isPS4CPU())) in ParsePICArgs()
3723 IsPICLevelTwo |= ToolChain.isPICDefault(); in ParsePICArgs()
3734 if (!ToolChain.getTriple().isOSDarwin()) in ParsePICArgs()
3735 ToolChain.getDriver().Diag(diag::err_drv_unsupported_opt_for_target) in ParsePICArgs()
3736 << A->getSpelling() << ToolChain.getTriple().str(); in ParsePICArgs()
3743 PIC = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced(); in ParsePICArgs()
3766 static void AddAssemblerKPIC(const ToolChain &ToolChain, const ArgList &Args, in AddAssemblerKPIC() argument
3772 ParsePICArgs(ToolChain, ToolChain.getTriple(), Args); in AddAssemblerKPIC()
3818 const ToolChain *AuxToolChain = nullptr; in ConstructJob()
5389 ToolChain::RTTIMode RTTIMode = getToolChain().getRTTIMode(); in ConstructJob()
5392 (RTTIMode == ToolChain::RM_DisabledExplicitly || in ConstructJob()
5393 RTTIMode == ToolChain::RM_DisabledImplicitly))) in ConstructJob()
5562 if (getToolChain().GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) in ConstructJob()
6972 const ToolChain::path_list &LibPaths = HTC.getFilePaths(); in constructHexagonLinkArgs()
7051 wasm::Linker::Linker(const ToolChain &TC) in Linker()
7068 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local
7069 const Driver &D = ToolChain.getDriver(); in ConstructJob()
7070 const char *Linker = Args.MakeArgString(ToolChain.GetLinkerPath()); 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()
7119 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); in ConstructJob()
7402 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local
7403 const Driver &D = ToolChain.getDriver(); 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()
7441 ToolChain.AddFilePathLibArgs(Args, 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()
7459 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtend.o"))); in ConstructJob()
7461 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
8488 const toolchains::FreeBSD &ToolChain = in ConstructJob() local
8490 const Driver &D = ToolChain.getDriver(); in ConstructJob()
8491 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
8494 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault()); in ConstructJob()
8523 if (ToolChain.getTriple().getOSMajorVersion() >= 9) { in ConstructJob()
8545 if (ToolChain.getArch() == llvm::Triple::mips || in ConstructJob()
8546 ToolChain.getArch() == llvm::Triple::mipsel || in ConstructJob()
8547 ToolChain.getArch() == llvm::Triple::mips64 || in ConstructJob()
8548 ToolChain.getArch() == llvm::Triple::mips64el) { 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()
8589 ToolChain.AddFilePathLibArgs(Args, CmdArgs); 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()
8613 linkSanitizerRuntimeDeps(ToolChain, CmdArgs); 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()
9220 static void AddRunTimeLibs(const ToolChain &TC, const Driver &D, in AddRunTimeLibs()
9223 ToolChain::RuntimeLibType RLT = TC.GetRuntimeLibType(Args); in AddRunTimeLibs()
9226 case ToolChain::RLT_CompilerRT: in AddRunTimeLibs()
9236 case ToolChain::RLT_Libgcc: in AddRunTimeLibs()
9306 const toolchains::Linux &ToolChain = in ConstructJob() local
9308 const Driver &D = ToolChain.getDriver(); in ConstructJob()
9313 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
9314 const bool isAndroid = ToolChain.getTriple().isAndroid(); in ConstructJob()
9315 const bool IsIAMCU = ToolChain.getTriple().isOSIAMCU(); in ConstructJob()
9318 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault()); in ConstructJob()
9320 ToolChain.getTriple().hasEnvironment() || in ConstructJob()
9321 (ToolChain.getTriple().getVendor() != llvm::Triple::MipsTechnologies); in ConstructJob()
9333 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
9356 for (const auto &Opt : ToolChain.ExtraOpts) in ConstructJob()
9364 CmdArgs.push_back(getLDMOption(ToolChain.getTriple(), Args)); in ConstructJob()
9382 D.DyldPrefix + ToolChain.getDynamicLinker(Args); 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()
9432 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
9435 AddGoldPlugin(ToolChain, Args, CmdArgs, D.getLTOMode() == LTOK_Thin); 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()
9452 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
9466 linkSanitizerRuntimeDeps(ToolChain, CmdArgs); in ConstructJob()
9469 linkXRayRuntimeDeps(ToolChain, Args, CmdArgs); in ConstructJob()
9481 switch (getOpenMPRuntime(ToolChain, Args)) { in ConstructJob()
9501 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in ConstructJob()
9518 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); 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()
9556 const toolchains::NaClToolChain &ToolChain = in ConstructJob() local
9558 InputInfo NaClMacros(types::TY_PP_Asm, ToolChain.GetNaClArmMacrosPath(), in ConstructJob()
9577 const toolchains::NaClToolChain &ToolChain = in ConstructJob() local
9579 const Driver &D = ToolChain.getDriver(); in ConstructJob()
9580 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
9620 D.Diag(diag::err_target_unsupported_arch) << ToolChain.getArchName() 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()
9648 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
9653 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructJob()
9661 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); 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()
9715 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob()
9946 static std::string FindVisualStudioExecutable(const ToolChain &TC, in FindVisualStudioExecutable()
9968 const ToolChain &TC = getToolChain(); in ConstructJob()
10296 ToolChain::RuntimeLibType RLT = getToolChain().GetRuntimeLibType(Args); in AddLibGCC()
10297 if (RLT == ToolChain::RLT_Libgcc) { in AddLibGCC()
10324 const ToolChain &TC = getToolChain(); in ConstructJob()
10923 static void AddPS4SanitizerArgs(const ToolChain &TC, ArgStringList &CmdArgs) { in AddPS4SanitizerArgs()
10938 const toolchains::FreeBSD &ToolChain = in ConstructPS4LinkJob() local
10940 const Driver &D = ToolChain.getDriver(); in ConstructPS4LinkJob()
10969 AddPS4SanitizerArgs(ToolChain, CmdArgs); in ConstructPS4LinkJob()
10981 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructPS4LinkJob()
10987 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("orbis-ld")); in ConstructPS4LinkJob()
10997 const toolchains::FreeBSD &ToolChain = in ConstructGoldLinkJob() local
10999 const Driver &D = ToolChain.getDriver(); 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()
11067 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructGoldLinkJob()
11077 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); in ConstructGoldLinkJob()
11084 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); 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()
11160 Args.MakeArgString(ToolChain.GetProgramPath("orbis-ld.gold")); in ConstructGoldLinkJob()
11162 Args.MakeArgString(ToolChain.GetProgramPath("orbis-ld")); in ConstructGoldLinkJob()
11173 const toolchains::FreeBSD &ToolChain = in ConstructJob() local
11175 const Driver &D = ToolChain.getDriver(); in ConstructJob()