[PATCH] MinGW toolchain

Alp Toker alp at nuanti.com
Fri Apr 18 16:40:34 PDT 2014


On 18/04/2014 09:38, Yaron Keren wrote:
>
> Index: lib/Driver/Tools.h
> ===================================================================
> --- lib/Driver/Tools.h
> +++ lib/Driver/Tools.h
> @@ -614,6 +614,37 @@
>     };
>   } // end namespace visualstudio
>   
> +  /// MinGW -- Directly call GNU Binutils assembler and linker
> +namespace MinGW {
> +  class LLVM_LIBRARY_VISIBILITY Assemble : public Tool  {
> +  public:
> +    Assemble(const ToolChain &TC) : Tool("dragonfly::Assemble", "assembler",
> +                                         TC) {}

dragonfly -- copy and paste error?

> +
> +    virtual bool hasIntegratedCPP() const { return false; }
> +
> +    virtual void ConstructJob(Compilation &C, const JobAction &JA,
> +                              const InputInfo &Output,
> +                              const InputInfoList &Inputs,
> +                              const llvm::opt::ArgList &TCArgs,
> +                              const char *LinkingOutput) const;
> +  };
> +  class LLVM_LIBRARY_VISIBILITY Link : public Tool  {
> +  public:
> +    Link(const ToolChain &TC) : Tool("dragonfly::Link", "linker", TC) {}

Ditto for this tool name.

> +
> +    virtual bool hasIntegratedCPP() const { return false; }
> +    virtual bool isLinkJob() const { return true; }
> +
> +    virtual void ConstructJob(Compilation &C, const JobAction &JA,
> +                              const InputInfo &Output,
> +                              const InputInfoList &Inputs,
> +                              const llvm::opt::ArgList &TCArgs,
> +                              const char *LinkingOutput) const;
> +  };
> +} // end namespace MinGW
> +
> +
>   namespace arm {
>     StringRef getARMFloatABI(const Driver &D, const llvm::opt::ArgList &Args,
>                            const llvm::Triple &Triple);
>

-- 
http://www.nuanti.com
the browser experts




More information about the cfe-commits mailing list