Lines Matching full:const
32 void AddPreprocessingOptions(const Driver &D,
33 const ArgList &Args,
35 const InputInfo &Output,
36 const InputInfoList &Inputs) const;
38 void AddARMTargetArgs(const ArgList &Args, ArgStringList &CmdArgs,
39 bool KernelOrKext) const;
40 void AddMIPSTargetArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
41 void AddSparcTargetArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
42 void AddX86TargetArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
45 Clang(const ToolChain &TC) : Tool("clang", "clang frontend", TC) {}
47 virtual bool hasGoodDiagnostics() const { return true; }
48 virtual bool hasIntegratedAssembler() const { return true; }
49 virtual bool hasIntegratedCPP() const { return true; }
51 virtual void ConstructJob(Compilation &C, const JobAction &JA,
52 const InputInfo &Output,
53 const InputInfoList &Inputs,
54 const ArgList &TCArgs,
55 const char *LinkingOutput) const;
61 ClangAs(const ToolChain &TC) : Tool("clang::as",
64 virtual bool hasGoodDiagnostics() const { return true; }
65 virtual bool hasIntegratedAssembler() const { return false; }
66 virtual bool hasIntegratedCPP() const { return false; }
68 virtual void ConstructJob(Compilation &C, const JobAction &JA,
69 const InputInfo &Output,
70 const InputInfoList &Inputs,
71 const ArgList &TCArgs,
72 const char *LinkingOutput) const;
79 Common(const char *Name, const char *ShortName,
80 const ToolChain &TC) : Tool(Name, ShortName, TC) {}
82 virtual void ConstructJob(Compilation &C, const JobAction &JA,
83 const InputInfo &Output,
84 const InputInfoList &Inputs,
85 const ArgList &TCArgs,
86 const char *LinkingOutput) const;
90 virtual void RenderExtraToolArgs(const JobAction &JA,
91 ArgStringList &CmdArgs) const = 0;
97 Preprocess(const ToolChain &TC) : Common("gcc::Preprocess",
100 virtual bool hasGoodDiagnostics() const { return true; }
101 virtual bool hasIntegratedCPP() const { return false; }
103 virtual void RenderExtraToolArgs(const JobAction &JA,
104 ArgStringList &CmdArgs) const;
109 Precompile(const ToolChain &TC) : Common("gcc::Precompile",
112 virtual bool hasGoodDiagnostics() const { return true; }
113 virtual bool hasIntegratedCPP() const { return true; }
115 virtual void RenderExtraToolArgs(const JobAction &JA,
116 ArgStringList &CmdArgs) const;
121 Compile(const ToolChain &TC) : Common("gcc::Compile",
124 virtual bool hasGoodDiagnostics() const { return true; }
125 virtual bool hasIntegratedCPP() const { return true; }
127 virtual void RenderExtraToolArgs(const JobAction &JA,
128 ArgStringList &CmdArgs) const;
133 Assemble(const ToolChain &TC) : Common("gcc::Assemble",
136 virtual bool hasIntegratedCPP() const { return false; }
138 virtual void RenderExtraToolArgs(const JobAction &JA,
139 ArgStringList &CmdArgs) const;
144 Link(const ToolChain &TC) : Common("gcc::Link",
147 virtual bool hasIntegratedCPP() const { return false; }
149 virtual void RenderExtraToolArgs(const JobAction &JA,
150 ArgStringList &CmdArgs) const;
157 void AddDarwinArch(const ArgList &Args, ArgStringList &CmdArgs) const;
159 const toolchains::Darwin &getDarwinToolChain() const {
160 return reinterpret_cast<const toolchains::Darwin&>(getToolChain());
164 DarwinTool(const char *Name, const char *ShortName,
165 const ToolChain &TC) : Tool(Name, ShortName, TC) {}
170 static const char *getBaseInputName(const ArgList &Args,
171 const InputInfoList &Input);
172 static const char *getBaseInputStem(const ArgList &Args,
173 const InputInfoList &Input);
174 static const char *getDependencyFileName(const ArgList &Args,
175 const InputInfoList &Inputs);
178 const char *getCC1Name(types::ID Type) const;
180 void AddCC1Args(const ArgList &Args, ArgStringList &CmdArgs) const;
181 void AddCC1OptionsArgs(const ArgList &Args, ArgStringList &CmdArgs,
182 const InputInfoList &Inputs,
183 const ArgStringList &OutputArgs) const;
184 void AddCPPOptionsArgs(const ArgList &Args, ArgStringList &CmdArgs,
185 const InputInfoList &Inputs,
186 const ArgStringList &OutputArgs) const;
187 void AddCPPUniqueOptionsArgs(const ArgList &Args,
189 const InputInfoList &Inputs) const;
190 void AddCPPArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
193 CC1(const char *Name, const char *ShortName,
194 const ToolChain &TC) : DarwinTool(Name, ShortName, TC) {}
196 virtual bool hasGoodDiagnostics() const { return true; }
197 virtual bool hasIntegratedCPP() const { return true; }
202 Preprocess(const ToolChain &TC) : CC1("darwin::Preprocess",
205 virtual void ConstructJob(Compilation &C, const JobAction &JA,
206 const InputInfo &Output,
207 const InputInfoList &Inputs,
208 const ArgList &TCArgs,
209 const char *LinkingOutput) const;
214 Compile(const ToolChain &TC) : CC1("darwin::Compile", "gcc frontend", TC) {}
216 virtual void ConstructJob(Compilation &C, const JobAction &JA,
217 const InputInfo &Output,
218 const InputInfoList &Inputs,
219 const ArgList &TCArgs,
220 const char *LinkingOutput) const;
225 Assemble(const ToolChain &TC) : DarwinTool("darwin::Assemble",
228 virtual bool hasIntegratedCPP() const { return false; }
230 virtual void ConstructJob(Compilation &C, const JobAction &JA,
231 const InputInfo &Output,
232 const InputInfoList &Inputs,
233 const ArgList &TCArgs,
234 const char *LinkingOutput) const;
238 void AddLinkArgs(Compilation &C, const ArgList &Args,
239 ArgStringList &CmdArgs) const;
242 Link(const ToolChain &TC) : DarwinTool("darwin::Link", "linker", TC) {}
244 virtual bool hasIntegratedCPP() const { return false; }
246 virtual void ConstructJob(Compilation &C, const JobAction &JA,
247 const InputInfo &Output,
248 const InputInfoList &Inputs,
249 const ArgList &TCArgs,
250 const char *LinkingOutput) const;
255 Lipo(const ToolChain &TC) : DarwinTool("darwin::Lipo", "lipo", TC) {}
257 virtual bool hasIntegratedCPP() const { return false; }
259 virtual void ConstructJob(Compilation &C, const JobAction &JA,
260 const InputInfo &Output,
261 const InputInfoList &Inputs,
262 const ArgList &TCArgs,
263 const char *LinkingOutput) const;
268 Dsymutil(const ToolChain &TC) : DarwinTool("darwin::Dsymutil",
271 virtual bool hasIntegratedCPP() const { return false; }
273 virtual void ConstructJob(Compilation &C, const JobAction &JA,
274 const InputInfo &Output,
275 const InputInfoList &Inputs,
276 const ArgList &TCArgs,
277 const char *LinkingOutput) const;
285 Assemble(const ToolChain &TC) : Tool("openbsd::Assemble", "assembler",
288 virtual bool hasIntegratedCPP() const { return false; }
290 virtual void ConstructJob(Compilation &C, const JobAction &JA,
291 const InputInfo &Output,
292 const InputInfoList &Inputs,
293 const ArgList &TCArgs,
294 const char *LinkingOutput) const;
298 Link(const ToolChain &TC) : Tool("openbsd::Link", "linker", TC) {}
300 virtual bool hasIntegratedCPP() const { return false; }
302 virtual void ConstructJob(Compilation &C, const JobAction &JA,
303 const InputInfo &Output,
304 const InputInfoList &Inputs,
305 const ArgList &TCArgs,
306 const char *LinkingOutput) const;
314 Assemble(const ToolChain &TC) : Tool("freebsd::Assemble", "assembler",
317 virtual bool hasIntegratedCPP() const { return false; }
319 virtual void ConstructJob(Compilation &C, const JobAction &JA,
320 const InputInfo &Output,
321 const InputInfoList &Inputs,
322 const ArgList &TCArgs,
323 const char *LinkingOutput) const;
327 Link(const ToolChain &TC) : Tool("freebsd::Link", "linker", TC) {}
329 virtual bool hasIntegratedCPP() const { return false; }
331 virtual void ConstructJob(Compilation &C, const JobAction &JA,
332 const InputInfo &Output,
333 const InputInfoList &Inputs,
334 const ArgList &TCArgs,
335 const char *LinkingOutput) const;
343 const llvm::Triple ToolTriple;
346 Assemble(const ToolChain &TC, const llvm::Triple &ToolTriple)
349 virtual bool hasIntegratedCPP() const { return false; }
351 virtual void ConstructJob(Compilation &C, const JobAction &JA,
352 const InputInfo &Output,
353 const InputInfoList &Inputs,
354 const ArgList &TCArgs,
355 const char *LinkingOutput) const;
359 const llvm::Triple ToolTriple;
362 Link(const ToolChain &TC, const llvm::Triple &ToolTriple)
365 virtual bool hasIntegratedCPP() const { return false; }
367 virtual void ConstructJob(Compilation &C, const JobAction &JA,
368 const InputInfo &Output,
369 const InputInfoList &Inputs,
370 const ArgList &TCArgs,
371 const char *LinkingOutput) const;
379 Assemble(const ToolChain &TC) : Tool("linux::Assemble", "assembler",
382 virtual bool hasIntegratedCPP() const { return false; }
384 virtual void ConstructJob(Compilation &C, const JobAction &JA,
385 const InputInfo &Output,
386 const InputInfoList &Inputs,
387 const ArgList &TCArgs,
388 const char *LinkingOutput) const;
392 Link(const ToolChain &TC) : Tool("linux::Link", "linker", TC) {}
394 virtual bool hasIntegratedCPP() const { return false; }
396 virtual void ConstructJob(Compilation &C, const JobAction &JA,
397 const InputInfo &Output,
398 const InputInfoList &Inputs,
399 const ArgList &TCArgs,
400 const char *LinkingOutput) const;
407 Assemble(const ToolChain &TC) : Tool("minix::Assemble", "assembler",
410 virtual bool hasIntegratedCPP() const { return false; }
412 virtual void ConstructJob(Compilation &C, const JobAction &JA,
413 const InputInfo &Output,
414 const InputInfoList &Inputs,
415 const ArgList &TCArgs,
416 const char *LinkingOutput) const;
420 const ToolChain &TC) : Tool("minix::Link", "linker", TC) {}
422 virtual bool hasIntegratedCPP() const { return false; }
424 virtual void ConstructJob(Compilation &C, const JobAction &JA,
425 const InputInfo &Output,
426 const InputInfoList &Inputs,
427 const ArgList &TCArgs,
428 const char *LinkingOutput) const;
436 Assemble(const ToolChain &TC) : Tool("auroraux::Assemble", "assembler",
439 virtual bool hasIntegratedCPP() const { return false; }
441 virtual void ConstructJob(Compilation &C, const JobAction &JA,
442 const InputInfo &Output,
443 const InputInfoList &Inputs,
444 const ArgList &TCArgs,
445 const char *LinkingOutput) const;
449 Link(const ToolChain &TC) : Tool("auroraux::Link", "linker", TC) {}
451 virtual bool hasIntegratedCPP() const { return false; }
453 virtual void ConstructJob(Compilation &C, const JobAction &JA,
454 const InputInfo &Output,
455 const InputInfoList &Inputs,
456 const ArgList &TCArgs,
457 const char *LinkingOutput) const;
465 Assemble(const ToolChain &TC) : Tool("dragonfly::Assemble", "assembler",
468 virtual bool hasIntegratedCPP() const { return false; }
470 virtual void ConstructJob(Compilation &C, const JobAction &JA,
471 const InputInfo &Output,
472 const InputInfoList &Inputs,
473 const ArgList &TCArgs,
474 const char *LinkingOutput) const;
478 Link(const ToolChain &TC) : Tool("dragonfly::Link", "linker", TC) {}
480 virtual bool hasIntegratedCPP() const { return false; }
482 virtual void ConstructJob(Compilation &C, const JobAction &JA,
483 const InputInfo &Output,
484 const InputInfoList &Inputs,
485 const ArgList &TCArgs,
486 const char *LinkingOutput) const;
494 Link(const ToolChain &TC) : Tool("visualstudio::Link", "linker", TC) {}
496 virtual bool hasIntegratedCPP() const { return false; }
498 virtual void ConstructJob(Compilation &C, const JobAction &JA,
499 const InputInfo &Output,
500 const InputInfoList &Inputs,
501 const ArgList &TCArgs,
502 const char *LinkingOutput) const;