diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/builtins/cpu_model.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builtins/cpu_model.c b/lib/builtins/cpu_model.c index 61574cd98..d9d541e22 100644 --- a/lib/builtins/cpu_model.c +++ b/lib/builtins/cpu_model.c @@ -119,6 +119,7 @@ enum ProcessorFeatures { FEATURE_EM64T }; +// The check below fori386 was copied from clang's cpuid.h. static bool isCpuIdSupported() { #if defined(i386) || defined(__i386__) int __cpuid_supported; @@ -144,6 +145,9 @@ static bool isCpuIdSupported() { 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__) || \ defined(_M_IX86) || defined(__x86_64__) || defined(_M_AMD64) || \ defined(_M_X64) |