mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +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:
parent
e1d82220c4
commit
893a045cdb
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user