Added comments identifing code source

llvm-svn: 274870
This commit is contained in:
Alina Sbirlea 2016-07-08 16:18:41 +00:00
parent 3b4c3f4d51
commit d6ce086f32
1 changed files with 4 additions and 0 deletions

View File

@ -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)