[llvm-commits] [llvm] r135639 - /llvm/trunk/lib/MC/MCObjectFileInfo.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jul 20 16:53:54 PDT 2011
Author: evancheng
Date: Wed Jul 20 18:53:54 2011
New Revision: 135639
URL: http://llvm.org/viewvc/llvm-project?rev=135639&view=rev
Log:
X86 is the only target that uses coff format. This should fixes test failures running on Windows, Cygwin, or MingW hosts.
Modified:
llvm/trunk/lib/MC/MCObjectFileInfo.cpp
Modified: llvm/trunk/lib/MC/MCObjectFileInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=135639&r1=135638&r2=135639&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp Wed Jul 20 18:53:54 2011
@@ -518,8 +518,9 @@
(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 {
More information about the llvm-commits
mailing list