1 //===--- Tools.h - Tool Implementations -------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLS_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLS_H
13 #include "clang/Driver/Tool.h"
14 #include "clang/Driver/Types.h"
15 #include "clang/Driver/Util.h"
16 #include "llvm/ADT/Triple.h"
17 #include "llvm/Option/Option.h"
18 #include "llvm/Support/Compiler.h"
27 namespace toolchains {
33 namespace visualstudio {
37 using llvm::opt::ArgStringList;
39 /// \brief Clang compiler tool.
40 class LLVM_LIBRARY_VISIBILITY Clang : public Tool {
42 static const char *getBaseInputName(const llvm::opt::ArgList &Args,
43 const InputInfoList &Inputs);
44 static const char *getBaseInputStem(const llvm::opt::ArgList &Args,
45 const InputInfoList &Inputs);
46 static const char *getDependencyFileName(const llvm::opt::ArgList &Args,
47 const InputInfoList &Inputs);
50 void AddPreprocessingOptions(Compilation &C, const JobAction &JA,
52 const llvm::opt::ArgList &Args,
53 llvm::opt::ArgStringList &CmdArgs,
54 const InputInfo &Output,
55 const InputInfoList &Inputs) const;
57 void AddAArch64TargetArgs(const llvm::opt::ArgList &Args,
58 llvm::opt::ArgStringList &CmdArgs) const;
59 void AddARMTargetArgs(const llvm::opt::ArgList &Args,
60 llvm::opt::ArgStringList &CmdArgs,
61 bool KernelOrKext) const;
62 void AddARM64TargetArgs(const llvm::opt::ArgList &Args,
63 llvm::opt::ArgStringList &CmdArgs) const;
64 void AddMIPSTargetArgs(const llvm::opt::ArgList &Args,
65 llvm::opt::ArgStringList &CmdArgs) const;
66 void AddPPCTargetArgs(const llvm::opt::ArgList &Args,
67 llvm::opt::ArgStringList &CmdArgs) const;
68 void AddR600TargetArgs(const llvm::opt::ArgList &Args,
69 llvm::opt::ArgStringList &CmdArgs) const;
70 void AddSparcTargetArgs(const llvm::opt::ArgList &Args,
71 llvm::opt::ArgStringList &CmdArgs) const;
72 void AddSystemZTargetArgs(const llvm::opt::ArgList &Args,
73 llvm::opt::ArgStringList &CmdArgs) const;
74 void AddX86TargetArgs(const llvm::opt::ArgList &Args,
75 llvm::opt::ArgStringList &CmdArgs) const;
76 void AddHexagonTargetArgs(const llvm::opt::ArgList &Args,
77 llvm::opt::ArgStringList &CmdArgs) const;
79 enum RewriteKind { RK_None, RK_Fragile, RK_NonFragile };
81 ObjCRuntime AddObjCRuntimeArgs(const llvm::opt::ArgList &args,
82 llvm::opt::ArgStringList &cmdArgs,
83 RewriteKind rewrite) const;
85 void AddClangCLArgs(const llvm::opt::ArgList &Args,
86 llvm::opt::ArgStringList &CmdArgs) const;
88 visualstudio::Compile *getCLFallback() const;
90 mutable std::unique_ptr<visualstudio::Compile> CLFallback;
93 Clang(const ToolChain &TC) : Tool("clang", "clang frontend", TC, RF_Full) {}
95 bool hasGoodDiagnostics() const override { return true; }
96 bool hasIntegratedAssembler() const override { return true; }
97 bool hasIntegratedCPP() const override { return true; }
98 bool canEmitIR() const override { return true; }
100 void ConstructJob(Compilation &C, const JobAction &JA,
101 const InputInfo &Output, const InputInfoList &Inputs,
102 const llvm::opt::ArgList &TCArgs,
103 const char *LinkingOutput) const override;
106 /// \brief Clang integrated assembler tool.
107 class LLVM_LIBRARY_VISIBILITY ClangAs : public Tool {
109 ClangAs(const ToolChain &TC) : Tool("clang::as",
110 "clang integrated assembler", TC,
113 bool hasGoodDiagnostics() const override { return true; }
114 bool hasIntegratedAssembler() const override { return false; }
115 bool hasIntegratedCPP() const override { return false; }
117 void ConstructJob(Compilation &C, const JobAction &JA,
118 const InputInfo &Output, const InputInfoList &Inputs,
119 const llvm::opt::ArgList &TCArgs,
120 const char *LinkingOutput) const override;
123 /// \brief Base class for all GNU tools that provide the same behavior when
124 /// it comes to response files support
125 class GnuTool : public Tool {
126 virtual void anchor();
129 GnuTool(const char *Name, const char *ShortName, const ToolChain &TC)
130 : Tool(Name, ShortName, TC, RF_Full, llvm::sys::WEM_CurrentCodePage) {}
133 /// gcc - Generic GCC tool implementations.
135 class LLVM_LIBRARY_VISIBILITY Common : public GnuTool {
137 Common(const char *Name, const char *ShortName,
138 const ToolChain &TC) : GnuTool(Name, ShortName, TC) {}
140 void ConstructJob(Compilation &C, const JobAction &JA,
141 const InputInfo &Output,
142 const InputInfoList &Inputs,
143 const llvm::opt::ArgList &TCArgs,
144 const char *LinkingOutput) const override;
146 /// RenderExtraToolArgs - Render any arguments necessary to force
147 /// the particular tool mode.
149 RenderExtraToolArgs(const JobAction &JA,
150 llvm::opt::ArgStringList &CmdArgs) const = 0;
153 class LLVM_LIBRARY_VISIBILITY Preprocess : public Common {
155 Preprocess(const ToolChain &TC) : Common("gcc::Preprocess",
156 "gcc preprocessor", TC) {}
158 bool hasGoodDiagnostics() const override { return true; }
159 bool hasIntegratedCPP() const override { return false; }
161 void RenderExtraToolArgs(const JobAction &JA,
162 llvm::opt::ArgStringList &CmdArgs) const override;
165 class LLVM_LIBRARY_VISIBILITY Compile : public Common {
167 Compile(const ToolChain &TC) : Common("gcc::Compile",
168 "gcc frontend", TC) {}
170 bool hasGoodDiagnostics() const override { return true; }
171 bool hasIntegratedCPP() const override { return true; }
173 void RenderExtraToolArgs(const JobAction &JA,
174 llvm::opt::ArgStringList &CmdArgs) const override;
177 class LLVM_LIBRARY_VISIBILITY Link : public Common {
179 Link(const ToolChain &TC) : Common("gcc::Link",
180 "linker (via gcc)", TC) {}
182 bool hasIntegratedCPP() const override { return false; }
183 bool isLinkJob() const override { return true; }
185 void RenderExtraToolArgs(const JobAction &JA,
186 llvm::opt::ArgStringList &CmdArgs) const override;
188 } // end namespace gcc
191 // For Hexagon, we do not need to instantiate tools for PreProcess, PreCompile and Compile.
192 // We simply use "clang -cc1" for those actions.
193 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
195 Assemble(const ToolChain &TC) : GnuTool("hexagon::Assemble",
198 bool hasIntegratedCPP() const override { return false; }
200 void RenderExtraToolArgs(const JobAction &JA,
201 llvm::opt::ArgStringList &CmdArgs) const;
202 void ConstructJob(Compilation &C, const JobAction &JA,
203 const InputInfo &Output, const InputInfoList &Inputs,
204 const llvm::opt::ArgList &TCArgs,
205 const char *LinkingOutput) const override;
208 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
210 Link(const ToolChain &TC) : GnuTool("hexagon::Link",
213 bool hasIntegratedCPP() const override { return false; }
214 bool isLinkJob() const override { return true; }
216 virtual void RenderExtraToolArgs(const JobAction &JA,
217 llvm::opt::ArgStringList &CmdArgs) const;
218 void ConstructJob(Compilation &C, const JobAction &JA,
219 const InputInfo &Output, const InputInfoList &Inputs,
220 const llvm::opt::ArgList &TCArgs,
221 const char *LinkingOutput) const override;
223 } // end namespace hexagon.
226 StringRef getARMTargetCPU(const llvm::opt::ArgList &Args,
227 const llvm::Triple &Triple);
228 const char* getARMCPUForMArch(const llvm::opt::ArgList &Args,
229 const llvm::Triple &Triple);
230 const char* getLLVMArchSuffixForARM(StringRef CPU);
232 void appendEBLinkFlags(const llvm::opt::ArgList &Args, ArgStringList &CmdArgs, const llvm::Triple &Triple);
236 void getMipsCPUAndABI(const llvm::opt::ArgList &Args,
237 const llvm::Triple &Triple, StringRef &CPUName,
239 bool hasMipsAbiArg(const llvm::opt::ArgList &Args, const char *Value);
240 bool isUCLibc(const llvm::opt::ArgList &Args);
241 bool isNaN2008(const llvm::opt::ArgList &Args, const llvm::Triple &Triple);
242 bool isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
247 bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value);
251 llvm::Triple::ArchType getArchTypeForMachOArchName(StringRef Str);
252 void setTripleTypeForMachOArchName(llvm::Triple &T, StringRef Str);
254 class LLVM_LIBRARY_VISIBILITY MachOTool : public Tool {
255 virtual void anchor();
257 void AddMachOArch(const llvm::opt::ArgList &Args,
258 llvm::opt::ArgStringList &CmdArgs) const;
260 const toolchains::MachO &getMachOToolChain() const {
261 return reinterpret_cast<const toolchains::MachO&>(getToolChain());
266 const char *Name, const char *ShortName, const ToolChain &TC,
267 ResponseFileSupport ResponseSupport = RF_None,
268 llvm::sys::WindowsEncodingMethod ResponseEncoding = llvm::sys::WEM_UTF8,
269 const char *ResponseFlag = "@")
270 : Tool(Name, ShortName, TC, ResponseSupport, ResponseEncoding,
274 class LLVM_LIBRARY_VISIBILITY Assemble : public MachOTool {
276 Assemble(const ToolChain &TC) : MachOTool("darwin::Assemble",
279 bool hasIntegratedCPP() const override { return false; }
281 void ConstructJob(Compilation &C, const JobAction &JA,
282 const InputInfo &Output, const InputInfoList &Inputs,
283 const llvm::opt::ArgList &TCArgs,
284 const char *LinkingOutput) const override;
287 class LLVM_LIBRARY_VISIBILITY Link : public MachOTool {
288 bool NeedsTempPath(const InputInfoList &Inputs) const;
289 void AddLinkArgs(Compilation &C, const llvm::opt::ArgList &Args,
290 llvm::opt::ArgStringList &CmdArgs,
291 const InputInfoList &Inputs) const;
294 Link(const ToolChain &TC) : MachOTool("darwin::Link", "linker", TC,
295 RF_FileList, llvm::sys::WEM_UTF8,
298 bool hasIntegratedCPP() const override { return false; }
299 bool isLinkJob() const override { return true; }
301 void ConstructJob(Compilation &C, const JobAction &JA,
302 const InputInfo &Output, const InputInfoList &Inputs,
303 const llvm::opt::ArgList &TCArgs,
304 const char *LinkingOutput) const override;
307 class LLVM_LIBRARY_VISIBILITY Lipo : public MachOTool {
309 Lipo(const ToolChain &TC) : MachOTool("darwin::Lipo", "lipo", TC) {}
311 bool hasIntegratedCPP() const override { return false; }
313 void ConstructJob(Compilation &C, const JobAction &JA,
314 const InputInfo &Output, const InputInfoList &Inputs,
315 const llvm::opt::ArgList &TCArgs,
316 const char *LinkingOutput) const override;
319 class LLVM_LIBRARY_VISIBILITY Dsymutil : public MachOTool {
321 Dsymutil(const ToolChain &TC) : MachOTool("darwin::Dsymutil",
324 bool hasIntegratedCPP() const override { return false; }
325 bool isDsymutilJob() const override { return true; }
327 void ConstructJob(Compilation &C, const JobAction &JA,
328 const InputInfo &Output,
329 const InputInfoList &Inputs,
330 const llvm::opt::ArgList &TCArgs,
331 const char *LinkingOutput) const override;
334 class LLVM_LIBRARY_VISIBILITY VerifyDebug : public MachOTool {
336 VerifyDebug(const ToolChain &TC) : MachOTool("darwin::VerifyDebug",
339 bool hasIntegratedCPP() const override { return false; }
341 void ConstructJob(Compilation &C, const JobAction &JA,
342 const InputInfo &Output, const InputInfoList &Inputs,
343 const llvm::opt::ArgList &TCArgs,
344 const char *LinkingOutput) const override;
349 /// openbsd -- Directly call GNU Binutils assembler and linker
351 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
353 Assemble(const ToolChain &TC) : GnuTool("openbsd::Assemble", "assembler",
356 bool hasIntegratedCPP() const override { return false; }
358 void ConstructJob(Compilation &C, const JobAction &JA,
359 const InputInfo &Output,
360 const InputInfoList &Inputs,
361 const llvm::opt::ArgList &TCArgs,
362 const char *LinkingOutput) const override;
364 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
366 Link(const ToolChain &TC) : GnuTool("openbsd::Link", "linker", TC) {}
368 bool hasIntegratedCPP() const override { return false; }
369 bool isLinkJob() const override { return true; }
371 void ConstructJob(Compilation &C, const JobAction &JA,
372 const InputInfo &Output, const InputInfoList &Inputs,
373 const llvm::opt::ArgList &TCArgs,
374 const char *LinkingOutput) const override;
376 } // end namespace openbsd
378 /// bitrig -- Directly call GNU Binutils assembler and linker
380 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
382 Assemble(const ToolChain &TC) : GnuTool("bitrig::Assemble", "assembler",
385 bool hasIntegratedCPP() const override { return false; }
387 void ConstructJob(Compilation &C, const JobAction &JA,
388 const InputInfo &Output, const InputInfoList &Inputs,
389 const llvm::opt::ArgList &TCArgs,
390 const char *LinkingOutput) const override;
392 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
394 Link(const ToolChain &TC) : GnuTool("bitrig::Link", "linker", TC) {}
396 bool hasIntegratedCPP() const override { return false; }
397 bool isLinkJob() const override { return true; }
399 void ConstructJob(Compilation &C, const JobAction &JA,
400 const InputInfo &Output, const InputInfoList &Inputs,
401 const llvm::opt::ArgList &TCArgs,
402 const char *LinkingOutput) const override;
404 } // end namespace bitrig
406 /// freebsd -- Directly call GNU Binutils assembler and linker
408 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
410 Assemble(const ToolChain &TC) : GnuTool("freebsd::Assemble", "assembler",
413 bool hasIntegratedCPP() const override { return false; }
415 void ConstructJob(Compilation &C, const JobAction &JA,
416 const InputInfo &Output, const InputInfoList &Inputs,
417 const llvm::opt::ArgList &TCArgs,
418 const char *LinkingOutput) const override;
420 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
422 Link(const ToolChain &TC) : GnuTool("freebsd::Link", "linker", TC) {}
424 bool hasIntegratedCPP() const override { return false; }
425 bool isLinkJob() const override { return true; }
427 void ConstructJob(Compilation &C, const JobAction &JA,
428 const InputInfo &Output, const InputInfoList &Inputs,
429 const llvm::opt::ArgList &TCArgs,
430 const char *LinkingOutput) const override;
432 } // end namespace freebsd
434 /// netbsd -- Directly call GNU Binutils assembler and linker
436 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
439 Assemble(const ToolChain &TC)
440 : GnuTool("netbsd::Assemble", "assembler", TC) {}
442 bool hasIntegratedCPP() const override { return false; }
444 void ConstructJob(Compilation &C, const JobAction &JA,
445 const InputInfo &Output, const InputInfoList &Inputs,
446 const llvm::opt::ArgList &TCArgs,
447 const char *LinkingOutput) const override;
449 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
452 Link(const ToolChain &TC)
453 : GnuTool("netbsd::Link", "linker", TC) {}
455 bool hasIntegratedCPP() const override { return false; }
456 bool isLinkJob() const override { return true; }
458 void ConstructJob(Compilation &C, const JobAction &JA,
459 const InputInfo &Output, const InputInfoList &Inputs,
460 const llvm::opt::ArgList &TCArgs,
461 const char *LinkingOutput) const override;
463 } // end namespace netbsd
465 /// Directly call GNU Binutils' assembler and linker.
467 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
469 Assemble(const ToolChain &TC) : GnuTool("GNU::Assemble", "assembler", TC) {}
471 bool hasIntegratedCPP() const override { return false; }
473 void ConstructJob(Compilation &C, const JobAction &JA,
474 const InputInfo &Output,
475 const InputInfoList &Inputs,
476 const llvm::opt::ArgList &TCArgs,
477 const char *LinkingOutput) const override;
479 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
481 Link(const ToolChain &TC) : GnuTool("GNU::Link", "linker", TC) {}
483 bool hasIntegratedCPP() const override { return false; }
484 bool isLinkJob() const override { return true; }
486 void ConstructJob(Compilation &C, const JobAction &JA,
487 const InputInfo &Output,
488 const InputInfoList &Inputs,
489 const llvm::opt::ArgList &TCArgs,
490 const char *LinkingOutput) const override;
493 /// minix -- Directly call GNU Binutils assembler and linker
495 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
497 Assemble(const ToolChain &TC) : GnuTool("minix::Assemble", "assembler",
500 bool hasIntegratedCPP() const override { return false; }
502 void ConstructJob(Compilation &C, const JobAction &JA,
503 const InputInfo &Output,
504 const InputInfoList &Inputs,
505 const llvm::opt::ArgList &TCArgs,
506 const char *LinkingOutput) const override;
508 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
510 Link(const ToolChain &TC) : GnuTool("minix::Link", "linker", TC) {}
512 bool hasIntegratedCPP() const override { return false; }
513 bool isLinkJob() const override { return true; }
515 void ConstructJob(Compilation &C, const JobAction &JA,
516 const InputInfo &Output,
517 const InputInfoList &Inputs,
518 const llvm::opt::ArgList &TCArgs,
519 const char *LinkingOutput) const override;
521 } // end namespace minix
523 /// solaris -- Directly call Solaris assembler and linker
525 class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
527 Assemble(const ToolChain &TC) : Tool("solaris::Assemble", "assembler",
530 bool hasIntegratedCPP() const override { return false; }
532 void ConstructJob(Compilation &C, const JobAction &JA,
533 const InputInfo &Output, const InputInfoList &Inputs,
534 const llvm::opt::ArgList &TCArgs,
535 const char *LinkingOutput) const override;
537 class LLVM_LIBRARY_VISIBILITY Link : public Tool {
539 Link(const ToolChain &TC) : Tool("solaris::Link", "linker", TC) {}
541 bool hasIntegratedCPP() const override { return false; }
542 bool isLinkJob() const override { return true; }
544 void ConstructJob(Compilation &C, const JobAction &JA,
545 const InputInfo &Output, const InputInfoList &Inputs,
546 const llvm::opt::ArgList &TCArgs,
547 const char *LinkingOutput) const override;
549 } // end namespace solaris
551 /// dragonfly -- Directly call GNU Binutils assembler and linker
552 namespace dragonfly {
553 class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool {
555 Assemble(const ToolChain &TC) : GnuTool("dragonfly::Assemble", "assembler",
558 bool hasIntegratedCPP() const override { return false; }
560 void ConstructJob(Compilation &C, const JobAction &JA,
561 const InputInfo &Output, const InputInfoList &Inputs,
562 const llvm::opt::ArgList &TCArgs,
563 const char *LinkingOutput) const override;
565 class LLVM_LIBRARY_VISIBILITY Link : public GnuTool {
567 Link(const ToolChain &TC) : GnuTool("dragonfly::Link", "linker", TC) {}
569 bool hasIntegratedCPP() const override { return false; }
570 bool isLinkJob() const override { return true; }
572 void ConstructJob(Compilation &C, const JobAction &JA,
573 const InputInfo &Output,
574 const InputInfoList &Inputs,
575 const llvm::opt::ArgList &TCArgs,
576 const char *LinkingOutput) const override;
578 } // end namespace dragonfly
580 /// Visual studio tools.
581 namespace visualstudio {
582 class LLVM_LIBRARY_VISIBILITY Link : public Tool {
584 Link(const ToolChain &TC) : Tool("visualstudio::Link", "linker", TC,
585 RF_Full, llvm::sys::WEM_UTF16) {}
587 bool hasIntegratedCPP() const override { return false; }
588 bool isLinkJob() const override { return true; }
590 void ConstructJob(Compilation &C, const JobAction &JA,
591 const InputInfo &Output, const InputInfoList &Inputs,
592 const llvm::opt::ArgList &TCArgs,
593 const char *LinkingOutput) const override;
596 class LLVM_LIBRARY_VISIBILITY Compile : public Tool {
598 Compile(const ToolChain &TC) : Tool("visualstudio::Compile", "compiler", TC,
599 RF_Full, llvm::sys::WEM_UTF16) {}
601 bool hasIntegratedAssembler() const override { return true; }
602 bool hasIntegratedCPP() const override { return true; }
603 bool isLinkJob() const override { return false; }
605 void ConstructJob(Compilation &C, const JobAction &JA,
606 const InputInfo &Output, const InputInfoList &Inputs,
607 const llvm::opt::ArgList &TCArgs,
608 const char *LinkingOutput) const override;
610 std::unique_ptr<Command> GetCommand(Compilation &C, const JobAction &JA,
611 const InputInfo &Output,
612 const InputInfoList &Inputs,
613 const llvm::opt::ArgList &TCArgs,
614 const char *LinkingOutput) const;
616 } // end namespace visualstudio
619 StringRef getARMFloatABI(const Driver &D, const llvm::opt::ArgList &Args,
620 const llvm::Triple &Triple);
623 // For XCore, we do not need to instantiate tools for PreProcess, PreCompile and Compile.
624 // We simply use "clang -cc1" for those actions.
625 class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
627 Assemble(const ToolChain &TC) : Tool("XCore::Assemble",
630 bool hasIntegratedCPP() const override { return false; }
631 void ConstructJob(Compilation &C, const JobAction &JA,
632 const InputInfo &Output, const InputInfoList &Inputs,
633 const llvm::opt::ArgList &TCArgs,
634 const char *LinkingOutput) const override;
637 class LLVM_LIBRARY_VISIBILITY Link : public Tool {
639 Link(const ToolChain &TC) : Tool("XCore::Link",
642 bool hasIntegratedCPP() const override { return false; }
643 bool isLinkJob() const override { return true; }
644 void ConstructJob(Compilation &C, const JobAction &JA,
645 const InputInfo &Output, const InputInfoList &Inputs,
646 const llvm::opt::ArgList &TCArgs,
647 const char *LinkingOutput) const override;
649 } // end namespace XCore.
651 namespace CrossWindows {
652 class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
654 Assemble(const ToolChain &TC) : Tool("CrossWindows::Assemble", "as", TC) { }
656 bool hasIntegratedCPP() const override { return false; }
658 void ConstructJob(Compilation &C, const JobAction &JA,
659 const InputInfo &Output, const InputInfoList &Inputs,
660 const llvm::opt::ArgList &TCArgs,
661 const char *LinkingOutput) const override;
664 class LLVM_LIBRARY_VISIBILITY Link : public Tool {
666 Link(const ToolChain &TC) : Tool("CrossWindows::Link", "ld", TC, RF_Full) {}
668 bool hasIntegratedCPP() const override { return false; }
669 bool isLinkJob() const override { return true; }
671 void ConstructJob(Compilation &C, const JobAction &JA,
672 const InputInfo &Output, const InputInfoList &Inputs,
673 const llvm::opt::ArgList &TCArgs,
674 const char *LinkingOutput) const override;
678 } // end namespace toolchains
679 } // end namespace driver
680 } // end namespace clang