9#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINGW_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_MINGW_H
18#include "llvm/Support/ErrorOr.h"
34 const llvm::opt::ArgList &TCArgs,
35 const char *LinkingOutput)
const override;
38class LLVM_LIBRARY_VISIBILITY
Linker final :
public Tool {
47 const llvm::opt::ArgList &TCArgs,
48 const char *LinkingOutput)
const override;
51 void AddLibGCC(
const llvm::opt::ArgList &Args,
52 llvm::opt::ArgStringList &CmdArgs)
const;
62 const llvm::opt::ArgList &Args);
64 static void fixTripleArch(
const Driver &
D, llvm::Triple &Triple,
65 const llvm::opt::ArgList &Args);
67 bool HasNativeLLVMSupport()
const override;
70 getDefaultUnwindTableLevel(
const llvm::opt::ArgList &Args)
const override;
71 bool isPICDefault()
const override;
72 bool isPIEDefault(
const llvm::opt::ArgList &Args)
const override;
73 bool isPICDefaultForced()
const override;
77 llvm::ExceptionHandling GetExceptionModel(
78 const llvm::opt::ArgList &Args)
const override;
81 AddClangSystemIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
82 llvm::opt::ArgStringList &CC1Args)
const override;
84 addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs,
85 llvm::opt::ArgStringList &CC1Args,
87 void AddClangCXXStdlibIncludeArgs(
88 const llvm::opt::ArgList &DriverArgs,
89 llvm::opt::ArgStringList &CC1Args)
const override;
91 void AddCudaIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
92 llvm::opt::ArgStringList &CC1Args)
const override;
93 void AddHIPIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
94 llvm::opt::ArgStringList &CC1Args)
const override;
96 void printVerboseInfo(raw_ostream &OS)
const override;
102 Tool *buildLinker()
const override;
103 Tool *buildAssembler()
const override;
110 std::string GccLibDir;
113 std::string SubdirName;
114 std::string TripleDirName;
115 mutable std::unique_ptr<tools::gcc::Preprocessor>
Preprocessor;
116 mutable std::unique_ptr<tools::gcc::Compiler> Compiler;
117 void findGccLibDir(
const llvm::Triple &LiteralTriple);
119 bool NativeLLVMSupport;
Simple wrapper for toolchain detector with costly initialization.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
Compilation - A set of tasks to perform for a single driver invocation.
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
The JSON file list parser is used to communicate input to InstallAPI.