diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-12-12 12:42:31 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-12-12 12:42:31 +0000 |
commit | 5c9429fa474381e637a06f7b1334afc4323d9716 (patch) | |
tree | 25682dd0649a1d80085cbb78cc7347155157d6a5 /llvm/lib/System/Host.cpp | |
parent | c0484fa61177e2a54c48c3397d5d7f8c140a96e0 (diff) | |
download | bcm5719-llvm-5c9429fa474381e637a06f7b1334afc4323d9716.tar.gz bcm5719-llvm-5c9429fa474381e637a06f7b1334afc4323d9716.zip |
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
Diffstat (limited to 'llvm/lib/System/Host.cpp')
-rw-r--r-- | llvm/lib/System/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Host.cpp b/llvm/lib/System/Host.cpp index e112698349e..2e02609bcb8 100644 --- a/llvm/lib/System/Host.cpp +++ b/llvm/lib/System/Host.cpp @@ -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"; |