mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
X86 is the only target that uses coff format. This should fixes test failures running on Windows, Cygwin, or MingW hosts.
llvm-svn: 135639
This commit is contained in:
parent
83acc80027
commit
882618fe7d
@ -518,8 +518,9 @@ void MCObjectFileInfo::InitMCObjectFileInfo(StringRef TT, Reloc::Model relocm,
|
||||
(T.isOSDarwin() || T.getEnvironment() == Triple::MachO)) {
|
||||
Env = IsMachO;
|
||||
InitMachOMCObjectFileInfo(T);
|
||||
} else if (T.getOS() == Triple::MinGW32 || T.getOS() == Triple::Cygwin ||
|
||||
T.getOS() == Triple::Win32) {
|
||||
} else if ((Arch == Triple::x86 || Arch == Triple::x86_64) &&
|
||||
(T.getOS() == Triple::MinGW32 || T.getOS() == Triple::Cygwin ||
|
||||
T.getOS() == Triple::Win32)) {
|
||||
Env = IsCOFF;
|
||||
InitCOFFMCObjectFileInfo(T);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user