parent
3b4c3f4d51
commit
d6ce086f32
|
@ -119,6 +119,7 @@ enum ProcessorFeatures {
|
||||||
FEATURE_EM64T
|
FEATURE_EM64T
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// The check below fori386 was copied from clang's cpuid.h.
|
||||||
static bool isCpuIdSupported() {
|
static bool isCpuIdSupported() {
|
||||||
#if defined(i386) || defined(__i386__)
|
#if defined(i386) || defined(__i386__)
|
||||||
int __cpuid_supported;
|
int __cpuid_supported;
|
||||||
|
@ -144,6 +145,9 @@ static bool isCpuIdSupported() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This code is copied from lib/Support/Host.cpp.
|
||||||
|
// Changes to either file should be mirrored in the other.
|
||||||
|
|
||||||
#if defined(i386) || defined(__i386__) || defined(__x86__) || \
|
#if defined(i386) || defined(__i386__) || defined(__x86__) || \
|
||||||
defined(_M_IX86) || defined(__x86_64__) || defined(_M_AMD64) || \
|
defined(_M_IX86) || defined(__x86_64__) || defined(_M_AMD64) || \
|
||||||
defined(_M_X64)
|
defined(_M_X64)
|
||||||
|
|
Loading…
Reference in New Issue