Enable CPU detection when using MS VS 2k8 too.

MSVS2k8 doesn't define __i386__, hence all the CPU detection code was disabled.
Enable it by looking for _MSC_VER.

llvm-svn: 91217
This commit is contained in:
Torok Edwin 2009-12-12 12:42:31 +00:00
parent c0484fa611
commit 5c9429fa47
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ static void DetectX86FamilyModel(unsigned EAX, unsigned &Family, unsigned &Model
std::string sys::getHostCPUName() {
#if defined(__x86_64__) || defined(__i386__)
#if defined(__x86_64__) || defined(__i386__) || defined(_MSC_VER)
unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX))
return "generic";