clang 22.0.0git
MipsLinux.h
Go to the documentation of this file.
1//===--- Mips.h - Mips 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_MIPS_LINUX_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MIPS_LINUX_H
11
12#include "Linux.h"
14
15namespace clang {
16namespace driver {
17namespace toolchains {
18
19class LLVM_LIBRARY_VISIBILITY MipsLLVMToolChain : public Linux {
20protected:
21 Tool *buildLinker() const override;
22
23public:
24 MipsLLVMToolChain(const Driver &D, const llvm::Triple &Triple,
25 const llvm::opt::ArgList &Args);
26
27 void
28 AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
29 llvm::opt::ArgStringList &CC1Args) const override;
30
31 CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override;
32
34 const llvm::opt::ArgList &DriverArgs,
35 llvm::opt::ArgStringList &CC1Args) const override;
36
37 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
38 llvm::opt::ArgStringList &CmdArgs) const override;
39
40 std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
42 bool IsFortran = false) const override;
43
44 std::string computeSysRoot() const override;
45
50
51 const char *getDefaultLinker() const override {
52 return "ld.lld";
53 }
54
55private:
56 std::string LibSuffix;
57};
58
59} // end namespace toolchains
60} // end namespace driver
61} // end namespace clang
62
63#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MIPS_LINUX_H
The base class of the type hierarchy.
Definition TypeBase.h:1833
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition Driver.h:99
Tool - Information on a specific compilation tool.
Definition Tool.h:32
GCCInstallationDetector GCCInstallation
Definition Gnu.h:357
Linux(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Definition Linux.cpp:212
void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const override
AddCXXStdlibLibArgs - Add the system specific linker arguments to use for the given C++ standard libr...
MipsLLVMToolChain(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Mips Toolchain.
Definition MipsLinux.cpp:23
CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override
Definition MipsLinux.cpp:80
RuntimeLibType GetDefaultRuntimeLibType() const override
GetDefaultRuntimeLibType - Get the default runtime library variant to use.
Definition MipsLinux.h:46
void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Add the clang cc1 arguments for system include paths.
Definition MipsLinux.cpp:39
const char * getDefaultLinker() const override
GetDefaultLinker - Get the default linker to use.
Definition MipsLinux.h:51
void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override
Definition MipsLinux.cpp:92
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component, FileType Type=ToolChain::FT_Static, bool IsFortran=false) const override
std::string computeSysRoot() const override
Return the sysroot, possibly searching for a default sysroot using target-specific logic.
Definition MipsLinux.cpp:66
The JSON file list parser is used to communicate input to InstallAPI.