diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-20 23:53:54 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-20 23:53:54 +0000 |
commit | c3035d66576856af77b22348059afa1f1cd4901c (patch) | |
tree | 10210ccd564263527dabf8ae9a45481a1b0d68c4 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 517695b27c747c345c07224f091ee45fe2a3724d (diff) | |
download | bcm5719-llvm-c3035d66576856af77b22348059afa1f1cd4901c.tar.gz bcm5719-llvm-c3035d66576856af77b22348059afa1f1cd4901c.zip |
X86 is the only target that uses coff format. This should fixes test failures running on Windows, Cygwin, or MingW hosts.
llvm-svn: 135639
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 0b0a3e00955..0cf98bd3b2a 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -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 { |