#include "MinGW.h"
#include "CommonArgs.h"
#include "clang/Config/config.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Options.h"
#include "clang/Driver/SanitizerArgs.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <system_error>
usingnamespaceclang::diag;
usingnamespaceclang::driver;
usingnamespaceclang;
usingnamespacellvm::opt;
void tools::MinGW::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
const InputInfo &Output,
const InputInfoList &Inputs,
const ArgList &Args,
const char *LinkingOutput) const { … }
void tools::MinGW::Linker::AddLibGCC(const ArgList &Args,
ArgStringList &CmdArgs) const { … }
void tools::MinGW::Linker::ConstructJob(Compilation &C, const JobAction &JA,
const InputInfo &Output,
const InputInfoList &Inputs,
const ArgList &Args,
const char *LinkingOutput) const { … }
static bool isCrossCompiling(const llvm::Triple &T, bool RequireArchMatch) { … }
static bool findGccVersion(StringRef LibDir, std::string &GccLibDir,
std::string &Ver,
toolchains::Generic_GCC::GCCVersion &Version) { … }
static llvm::Triple getLiteralTriple(const Driver &D, const llvm::Triple &T) { … }
void toolchains::MinGW::findGccLibDir(const llvm::Triple &LiteralTriple) { … }
static llvm::ErrorOr<std::string> findGcc(const llvm::Triple &LiteralTriple,
const llvm::Triple &T) { … }
static llvm::ErrorOr<std::string>
findClangRelativeSysroot(const Driver &D, const llvm::Triple &LiteralTriple,
const llvm::Triple &T, std::string &SubdirName) { … }
static bool looksLikeMinGWSysroot(const std::string &Directory) { … }
toolchains::MinGW::MinGW(const Driver &D, const llvm::Triple &Triple,
const ArgList &Args)
: … { … }
Tool *toolchains::MinGW::getTool(Action::ActionClass AC) const { … }
Tool *toolchains::MinGW::buildAssembler() const { … }
Tool *toolchains::MinGW::buildLinker() const { … }
bool toolchains::MinGW::HasNativeLLVMSupport() const { … }
ToolChain::UnwindTableLevel
toolchains::MinGW::getDefaultUnwindTableLevel(const ArgList &Args) const { … }
bool toolchains::MinGW::isPICDefault() const { … }
bool toolchains::MinGW::isPIEDefault(const llvm::opt::ArgList &Args) const { … }
bool toolchains::MinGW::isPICDefaultForced() const { … }
llvm::ExceptionHandling
toolchains::MinGW::GetExceptionModel(const ArgList &Args) const { … }
SanitizerMask toolchains::MinGW::getSupportedSanitizers() const { … }
void toolchains::MinGW::AddCudaIncludeArgs(const ArgList &DriverArgs,
ArgStringList &CC1Args) const { … }
void toolchains::MinGW::AddHIPIncludeArgs(const ArgList &DriverArgs,
ArgStringList &CC1Args) const { … }
void toolchains::MinGW::printVerboseInfo(raw_ostream &OS) const { … }
void toolchains::MinGW::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
ArgStringList &CC1Args) const { … }
void toolchains::MinGW::addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
Action::OffloadKind DeviceOffloadKind) const { … }
void toolchains::MinGW::AddClangCXXStdlibIncludeArgs(
const ArgList &DriverArgs, ArgStringList &CC1Args) const { … }
static bool testTriple(const Driver &D, const llvm::Triple &Triple,
const ArgList &Args) { … }
static llvm::Triple adjustTriple(const Driver &D, const llvm::Triple &Triple,
const ArgList &Args) { … }
void toolchains::MinGW::fixTripleArch(const Driver &D, llvm::Triple &Triple,
const ArgList &Args) { … }