Lines Matching full:toolchain
1 //===--- RISCVToolchain.cpp - RISCV ToolChain Implementations ---*- C++ -*-===//
28 ToolChain::path_list &Paths) { in addMultilibsFilePaths()
35 // through gcc-toolchain argument or in the same prefix where clang
36 // is installed. This helps decide whether to instantiate this toolchain
37 // or Baremetal toolchain.
49 /// RISCV Toolchain
58 // Add toolchain/multilib specific file paths. in RISCVToolChain()
62 ToolChain::path_list &PPaths = getProgramPaths(); in RISCVToolChain()
79 ToolChain::RuntimeLibType RISCVToolChain::GetDefaultRuntimeLibType() const { in GetDefaultRuntimeLibType()
81 ToolChain::RLT_Libgcc : ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType()
84 ToolChain::UnwindLibType
86 return ToolChain::UNW_None; in GetUnwindLibType()
145 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local
146 const Driver &D = ToolChain.getDriver(); in ConstructJob()
152 bool IsRV64 = ToolChain.getArch() == llvm::Triple::riscv64; in ConstructJob()
166 auto RuntimeLib = ToolChain.GetRuntimeLibType(Args); in ConstructJob()
167 if (RuntimeLib == ToolChain::RLT_Libgcc) { in ConstructJob()
171 assert (RuntimeLib == ToolChain::RLT_CompilerRT); in ConstructJob()
172 crtbegin = ToolChain.getCompilerRTArgString(Args, "crtbegin", in ConstructJob()
173 ToolChain::FT_Object); in ConstructJob()
174 crtend = ToolChain.getCompilerRTArgString(Args, "crtend", in ConstructJob()
175 ToolChain::FT_Object); in ConstructJob()
179 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob()
180 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
184 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
189 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
195 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
196 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
201 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
205 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in ConstructJob()