[llvm-commits] [llvm] r48695 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Anton Korobeynikov asl at math.spbu.ru
Sat Mar 22 14:18:22 PDT 2008


Author: asl
Date: Sat Mar 22 16:18:22 2008
New Revision: 48695

URL: http://llvm.org/viewvc/llvm-project?rev=48695&view=rev
Log:
Honour built-in defines on win64 targets for automatically subtarget recognize.
Force stack alignment to 16 bytes on win targets.

Modified:
    llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=48695&r1=48694&r2=48695&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Sat Mar 22 16:18:22 2008
@@ -274,7 +274,7 @@
   } else if (TT.empty()) {
 #if defined(__CYGWIN__)
     TargetType = isCygwin;
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(__MINGW64__)
     TargetType = isMingw;
 #elif defined(__APPLE__)
     TargetType = isDarwin;
@@ -284,7 +284,7 @@
     DarwinVers = 8;  // Minimum supported darwin is Tiger.
 #endif
     
-#elif defined(_WIN32)
+#elif defined(_WIN32) || defined(_WIN64)
     TargetType = isWindows;
 #endif
   }
@@ -299,6 +299,7 @@
   if (TargetType == isDarwin ||
       TargetType == isCygwin ||
       TargetType == isMingw  ||
+      TargetType == isWindows ||
       (TargetType == isELF && Is64Bit))
     stackAlignment = 16;
 }





More information about the llvm-commits mailing list