xref: /netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/Minix.h (revision e038c9c4676b0f19b1b7dd08a940c6ed64a6d5ae)
17330f729Sjoerg //===--- Minix.h - Minix ToolChain Implementations --------------*- C++ -*-===//
27330f729Sjoerg //
37330f729Sjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
47330f729Sjoerg // See https://llvm.org/LICENSE.txt for license information.
57330f729Sjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
67330f729Sjoerg //
77330f729Sjoerg //===----------------------------------------------------------------------===//
87330f729Sjoerg 
97330f729Sjoerg #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
107330f729Sjoerg #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
117330f729Sjoerg 
127330f729Sjoerg #include "Gnu.h"
137330f729Sjoerg #include "clang/Driver/Tool.h"
147330f729Sjoerg #include "clang/Driver/ToolChain.h"
157330f729Sjoerg 
167330f729Sjoerg namespace clang {
177330f729Sjoerg namespace driver {
187330f729Sjoerg namespace tools {
197330f729Sjoerg /// minix -- Directly call GNU Binutils assembler and linker
207330f729Sjoerg namespace minix {
21*e038c9c4Sjoerg class LLVM_LIBRARY_VISIBILITY Assembler : public Tool {
227330f729Sjoerg public:
Assembler(const ToolChain & TC)23*e038c9c4Sjoerg   Assembler(const ToolChain &TC) : Tool("minix::Assembler", "assembler", TC) {}
247330f729Sjoerg 
hasIntegratedCPP()257330f729Sjoerg   bool hasIntegratedCPP() const override { return false; }
267330f729Sjoerg 
277330f729Sjoerg   void ConstructJob(Compilation &C, const JobAction &JA,
287330f729Sjoerg                     const InputInfo &Output, const InputInfoList &Inputs,
297330f729Sjoerg                     const llvm::opt::ArgList &TCArgs,
307330f729Sjoerg                     const char *LinkingOutput) const override;
317330f729Sjoerg };
327330f729Sjoerg 
33*e038c9c4Sjoerg class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
347330f729Sjoerg public:
Linker(const ToolChain & TC)35*e038c9c4Sjoerg   Linker(const ToolChain &TC) : Tool("minix::Linker", "linker", TC) {}
367330f729Sjoerg 
hasIntegratedCPP()377330f729Sjoerg   bool hasIntegratedCPP() const override { return false; }
isLinkJob()387330f729Sjoerg   bool isLinkJob() const override { return true; }
397330f729Sjoerg 
407330f729Sjoerg   void ConstructJob(Compilation &C, const JobAction &JA,
417330f729Sjoerg                     const InputInfo &Output, const InputInfoList &Inputs,
427330f729Sjoerg                     const llvm::opt::ArgList &TCArgs,
437330f729Sjoerg                     const char *LinkingOutput) const override;
447330f729Sjoerg };
457330f729Sjoerg } // end namespace minix
467330f729Sjoerg } // end namespace tools
477330f729Sjoerg 
487330f729Sjoerg namespace toolchains {
497330f729Sjoerg 
507330f729Sjoerg class LLVM_LIBRARY_VISIBILITY Minix : public Generic_ELF {
517330f729Sjoerg public:
527330f729Sjoerg   Minix(const Driver &D, const llvm::Triple &Triple,
537330f729Sjoerg         const llvm::opt::ArgList &Args);
547330f729Sjoerg 
557330f729Sjoerg protected:
567330f729Sjoerg   Tool *buildAssembler() const override;
577330f729Sjoerg   Tool *buildLinker() const override;
587330f729Sjoerg };
597330f729Sjoerg 
607330f729Sjoerg } // end namespace toolchains
617330f729Sjoerg } // end namespace driver
627330f729Sjoerg } // end namespace clang
637330f729Sjoerg 
647330f729Sjoerg #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
65