1 //===--- Mips.h - Mips ToolChain Implementations ----------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MIPS_LINUX_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MIPS_LINUX_H
13 #include "clang/Driver/ToolChain.h"
17 namespace toolchains
{
19 class LLVM_LIBRARY_VISIBILITY MipsLLVMToolChain
: public Linux
{
21 Tool
*buildLinker() const override
;
24 MipsLLVMToolChain(const Driver
&D
, const llvm::Triple
&Triple
,
25 const llvm::opt::ArgList
&Args
);
28 AddClangSystemIncludeArgs(const llvm::opt::ArgList
&DriverArgs
,
29 llvm::opt::ArgStringList
&CC1Args
) const override
;
31 CXXStdlibType
GetCXXStdlibType(const llvm::opt::ArgList
&Args
) const override
;
33 void addLibCxxIncludePaths(
34 const llvm::opt::ArgList
&DriverArgs
,
35 llvm::opt::ArgStringList
&CC1Args
) const override
;
37 void AddCXXStdlibLibArgs(const llvm::opt::ArgList
&Args
,
38 llvm::opt::ArgStringList
&CmdArgs
) const override
;
41 getCompilerRT(const llvm::opt::ArgList
&Args
, StringRef Component
,
42 FileType Type
= ToolChain::FT_Static
) const override
;
44 std::string
computeSysRoot() const override
;
46 RuntimeLibType
GetDefaultRuntimeLibType() const override
{
47 return GCCInstallation
.isValid() ? RuntimeLibType::RLT_Libgcc
48 : RuntimeLibType::RLT_CompilerRT
;
51 const char *getDefaultLinker() const override
{
56 Multilib SelectedMultilib
;
57 std::string LibSuffix
;
60 } // end namespace toolchains
61 } // end namespace driver
62 } // end namespace clang
64 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MIPS_LINUX_H