clang 17.0.0git
Minix.h
Go to the documentation of this file.
1//===--- Minix.h - Minix ToolChain Implementations --------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
11
12#include "Gnu.h"
13#include "clang/Driver/Tool.h"
15
16namespace clang {
17namespace driver {
18namespace tools {
19/// minix -- Directly call GNU Binutils assembler and linker
20namespace minix {
21class LLVM_LIBRARY_VISIBILITY Assembler : public Tool {
22public:
23 Assembler(const ToolChain &TC) : Tool("minix::Assembler", "assembler", TC) {}
24
25 bool hasIntegratedCPP() const override { return false; }
26
27 void ConstructJob(Compilation &C, const JobAction &JA,
28 const InputInfo &Output, const InputInfoList &Inputs,
29 const llvm::opt::ArgList &TCArgs,
30 const char *LinkingOutput) const override;
31};
32
33class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
34public:
35 Linker(const ToolChain &TC) : Tool("minix::Linker", "linker", TC) {}
36
37 bool hasIntegratedCPP() const override { return false; }
38 bool isLinkJob() const override { return true; }
39
40 void ConstructJob(Compilation &C, const JobAction &JA,
41 const InputInfo &Output, const InputInfoList &Inputs,
42 const llvm::opt::ArgList &TCArgs,
43 const char *LinkingOutput) const override;
44};
45} // end namespace minix
46} // end namespace tools
47
48namespace toolchains {
49
50class LLVM_LIBRARY_VISIBILITY Minix : public Generic_ELF {
51public:
52 Minix(const Driver &D, const llvm::Triple &Triple,
53 const llvm::opt::ArgList &Args);
54
55protected:
56 Tool *buildAssembler() const override;
57 Tool *buildLinker() const override;
58};
59
60} // end namespace toolchains
61} // end namespace driver
62} // end namespace clang
63
64#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINIX_H
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:45
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:77
InputInfo - Wrapper for information about an input source.
Definition: InputInfo.h:22
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:91
Tool - Information on a specific compilation tool.
Definition: Tool.h:32
Assembler(const ToolChain &TC)
Definition: Minix.h:23
bool hasIntegratedCPP() const override
Definition: Minix.h:25
bool hasIntegratedCPP() const override
Definition: Minix.h:37
Linker(const ToolChain &TC)
Definition: Minix.h:35
bool isLinkJob() const override
Definition: Minix.h:38