forked from OSchip/llvm-project
Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 instead.
No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. llvm-svn: 125742
This commit is contained in:
parent
029d74b264
commit
31ea2f14bc
|
@ -2691,7 +2691,7 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
return new FreeBSDTargetInfo<X86_64TargetInfo>(T);
|
||||
case llvm::Triple::Solaris:
|
||||
return new SolarisTargetInfo<X86_64TargetInfo>(T);
|
||||
case llvm::Triple::MinGW64:
|
||||
case llvm::Triple::MinGW32:
|
||||
return new MinGWX86_64TargetInfo(T);
|
||||
case llvm::Triple::Win32: // This is what Triple.h supports now.
|
||||
if (Triple.getEnvironment() == llvm::Triple::MachO)
|
||||
|
|
|
@ -2829,7 +2829,7 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() {
|
|||
case llvm::Triple::x86_64:
|
||||
switch (Triple.getOS()) {
|
||||
case llvm::Triple::Win32:
|
||||
case llvm::Triple::MinGW64:
|
||||
case llvm::Triple::MinGW32:
|
||||
case llvm::Triple::Cygwin:
|
||||
return *(TheTargetCodeGenInfo = new WinX86_64TargetCodeGenInfo(Types));
|
||||
default:
|
||||
|
|
|
@ -1349,7 +1349,6 @@ const HostInfo *Driver::GetHostInfo(const char *TripleStr) const {
|
|||
case llvm::Triple::Win32:
|
||||
return createWindowsHostInfo(*this, Triple);
|
||||
case llvm::Triple::MinGW32:
|
||||
case llvm::Triple::MinGW64:
|
||||
return createMinGWHostInfo(*this, Triple);
|
||||
default:
|
||||
return createUnknownHostInfo(*this, Triple);
|
||||
|
|
|
@ -1448,8 +1448,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (KernelOrKext ||
|
||||
!Args.hasFlag(options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW64))
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32))
|
||||
CmdArgs.push_back("-fno-use-cxa-atexit");
|
||||
|
||||
// -fms-extensions=0 is default.
|
||||
|
|
|
@ -529,7 +529,6 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
|
|||
case llvm::Triple::Cygwin:
|
||||
AddPath("/usr/include/w32api", System, true, false, false);
|
||||
break;
|
||||
case llvm::Triple::MinGW64:
|
||||
case llvm::Triple::MinGW32:
|
||||
AddPath("c:/mingw/include", System, true, false, false);
|
||||
break;
|
||||
|
@ -566,14 +565,6 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple) {
|
|||
// FIXME: Do we support g++-3.4.4?
|
||||
AddMinGWCPlusPlusIncludePaths("/usr/lib/gcc", "i686-pc-cygwin", "3.4.4");
|
||||
break;
|
||||
case llvm::Triple::MinGW64:
|
||||
// Try gcc 4.5.0
|
||||
AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw64", "4.5.0");
|
||||
// Try gcc 4.4.0
|
||||
AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw64", "4.4.0");
|
||||
// Try gcc 4.3.0
|
||||
AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw64", "4.3.0");
|
||||
// Fall through.
|
||||
case llvm::Triple::MinGW32:
|
||||
// Try gcc 4.5.0
|
||||
AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw32", "4.5.0");
|
||||
|
|
|
@ -238,8 +238,7 @@ namespace {
|
|||
const AttributeList &Attr, Sema &S) const {
|
||||
const llvm::Triple &Triple(S.Context.Target.getTriple());
|
||||
if (Triple.getOS() == llvm::Triple::Win32 ||
|
||||
Triple.getOS() == llvm::Triple::MinGW32 ||
|
||||
Triple.getOS() == llvm::Triple::MinGW64) {
|
||||
Triple.getOS() == llvm::Triple::MinGW32) {
|
||||
switch (Attr.getKind()) {
|
||||
case AttributeList::AT_dllimport: HandleDLLImportAttr(D, Attr, S);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue