mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 generally.
No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. In llvm side, i686 and x64 can be treated as similar way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e310b3a2a3
commit
6904f05e60
@ -84,8 +84,7 @@ public:
|
||||
FreeBSD,
|
||||
Linux,
|
||||
Lv2, // PS3
|
||||
MinGW32,
|
||||
MinGW64,
|
||||
MinGW32, // i*86-pc-mingw32, *-w64-mingw32
|
||||
NetBSD,
|
||||
OpenBSD,
|
||||
Psp,
|
||||
|
@ -101,7 +101,6 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
case Linux: return "linux";
|
||||
case Lv2: return "lv2";
|
||||
case MinGW32: return "mingw32";
|
||||
case MinGW64: return "mingw64";
|
||||
case NetBSD: return "netbsd";
|
||||
case OpenBSD: return "openbsd";
|
||||
case Psp: return "psp";
|
||||
@ -318,8 +317,6 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
|
||||
return Lv2;
|
||||
else if (OSName.startswith("mingw32"))
|
||||
return MinGW32;
|
||||
else if (OSName.startswith("mingw64"))
|
||||
return MinGW64;
|
||||
else if (OSName.startswith("netbsd"))
|
||||
return NetBSD;
|
||||
else if (OSName.startswith("openbsd"))
|
||||
|
@ -45,7 +45,6 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT,
|
||||
case Triple::Darwin:
|
||||
return createMachOStreamer(Ctx, TAB, OS, Emitter, RelaxAll);
|
||||
case Triple::MinGW32:
|
||||
case Triple::MinGW64:
|
||||
case Triple::Cygwin:
|
||||
case Triple::Win32:
|
||||
llvm_unreachable("ARM does not support Windows COFF format");
|
||||
|
@ -41,7 +41,6 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT,
|
||||
llvm_unreachable("MBlaze does not support Darwin MACH-O format");
|
||||
return NULL;
|
||||
case Triple::MinGW32:
|
||||
case Triple::MinGW64:
|
||||
case Triple::Cygwin:
|
||||
case Triple::Win32:
|
||||
llvm_unreachable("MBlaze does not support Windows COFF format");
|
||||
|
@ -428,7 +428,7 @@ TargetAsmBackend *llvm::createX86_64AsmBackend(const Target &T,
|
||||
switch (Triple(TT).getOS()) {
|
||||
case Triple::Darwin:
|
||||
return new DarwinX86_64AsmBackend(T);
|
||||
case Triple::MinGW64:
|
||||
case Triple::MinGW32:
|
||||
case Triple::Cygwin:
|
||||
case Triple::Win32:
|
||||
if (Triple(TT).getEnvironment() == Triple::MachO)
|
||||
|
@ -175,9 +175,7 @@ public:
|
||||
bool isTargetLinux() const { return TargetTriple.getOS() == Triple::Linux; }
|
||||
|
||||
bool isTargetWindows() const { return TargetTriple.getOS() == Triple::Win32; }
|
||||
bool isTargetMingw() const {
|
||||
return TargetTriple.getOS() == Triple::MinGW32 ||
|
||||
TargetTriple.getOS() == Triple::MinGW64; }
|
||||
bool isTargetMingw() const { return TargetTriple.getOS() == Triple::MinGW32; }
|
||||
bool isTargetCygwin() const { return TargetTriple.getOS() == Triple::Cygwin; }
|
||||
bool isTargetCygMing() const {
|
||||
return isTargetMingw() || isTargetCygwin();
|
||||
|
@ -30,7 +30,6 @@ static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
|
||||
case Triple::Darwin:
|
||||
return new X86MCAsmInfoDarwin(TheTriple);
|
||||
case Triple::MinGW32:
|
||||
case Triple::MinGW64:
|
||||
case Triple::Cygwin:
|
||||
case Triple::Win32:
|
||||
if (TheTriple.getEnvironment() == Triple::MachO)
|
||||
@ -53,7 +52,6 @@ static MCStreamer *createMCStreamer(const Target &T, const std::string &TT,
|
||||
case Triple::Darwin:
|
||||
return createMachOStreamer(Ctx, TAB, _OS, _Emitter, RelaxAll);
|
||||
case Triple::MinGW32:
|
||||
case Triple::MinGW64:
|
||||
case Triple::Cygwin:
|
||||
case Triple::Win32:
|
||||
if (TheTriple.getEnvironment() == Triple::MachO)
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc -mtriple=x86_64-pc-mingw64 < %s | FileCheck %s
|
||||
; RUN: llc -mtriple=x86_64-mingw32 < %s | FileCheck %s
|
||||
; CHECK-NOT: -{{[1-9][0-9]*}}(%rsp)
|
||||
|
||||
define x86_fp80 @a(i64 %x) nounwind readnone {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc -mtriple=x86_64-pc-mingw64 < %s | FileCheck %s
|
||||
; RUN: llc -mtriple=x86_64-mingw32 < %s | FileCheck %s
|
||||
; CHECK: subq $40, %rsp
|
||||
; CHECK: movaps %xmm8, (%rsp)
|
||||
; CHECK: movaps %xmm7, 16(%rsp)
|
||||
|
Loading…
Reference in New Issue
Block a user