mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Honour built-in defines on win64 targets for automatically subtarget recognize.
Force stack alignment to 16 bytes on win targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -274,7 +274,7 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
 | 
				
			|||||||
  } else if (TT.empty()) {
 | 
					  } else if (TT.empty()) {
 | 
				
			||||||
#if defined(__CYGWIN__)
 | 
					#if defined(__CYGWIN__)
 | 
				
			||||||
    TargetType = isCygwin;
 | 
					    TargetType = isCygwin;
 | 
				
			||||||
#elif defined(__MINGW32__)
 | 
					#elif defined(__MINGW32__) || defined(__MINGW64__)
 | 
				
			||||||
    TargetType = isMingw;
 | 
					    TargetType = isMingw;
 | 
				
			||||||
#elif defined(__APPLE__)
 | 
					#elif defined(__APPLE__)
 | 
				
			||||||
    TargetType = isDarwin;
 | 
					    TargetType = isDarwin;
 | 
				
			||||||
@@ -284,7 +284,7 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
 | 
				
			|||||||
    DarwinVers = 8;  // Minimum supported darwin is Tiger.
 | 
					    DarwinVers = 8;  // Minimum supported darwin is Tiger.
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
#elif defined(_WIN32)
 | 
					#elif defined(_WIN32) || defined(_WIN64)
 | 
				
			||||||
    TargetType = isWindows;
 | 
					    TargetType = isWindows;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -299,6 +299,7 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
 | 
				
			|||||||
  if (TargetType == isDarwin ||
 | 
					  if (TargetType == isDarwin ||
 | 
				
			||||||
      TargetType == isCygwin ||
 | 
					      TargetType == isCygwin ||
 | 
				
			||||||
      TargetType == isMingw  ||
 | 
					      TargetType == isMingw  ||
 | 
				
			||||||
 | 
					      TargetType == isWindows ||
 | 
				
			||||||
      (TargetType == isELF && Is64Bit))
 | 
					      (TargetType == isELF && Is64Bit))
 | 
				
			||||||
    stackAlignment = 16;
 | 
					    stackAlignment = 16;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user