mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
PR11834: Use macros which are defined on Windows. Patch by Marina Yatsina.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
e1d82220c4
commit
893a045cdb
2 files changed
+4
-2
No files matched your search
@@ -331,7 +331,8 @@ MCSubtargetInfo *X86_MC::createX86MCSubtargetInfo(StringRef TT, StringRef CPU,
|
||||
|
||||
std::string CPUName = CPU;
|
||||
if (CPUName.empty()) {
|
||||
#if defined (__x86_64__) || defined(__i386__)
|
||||
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|
||||
|| defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
|
||||
CPUName = sys::getHostCPUName();
|
||||
#else
|
||||
CPUName = "generic";
|
||||
|
||||
@@ -342,7 +342,8 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
|
||||
if (!FS.empty() || !CPU.empty()) {
|
||||
std::string CPUName = CPU;
|
||||
if (CPUName.empty()) {
|
||||
#if defined (__x86_64__) || defined(__i386__)
|
||||
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|
||||
|| defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
|
||||
CPUName = sys::getHostCPUName();
|
||||
#else
|
||||
CPUName = "generic";
|
||||
|
||||
Reference in new issue
Block a user