forked from OSchip/llvm-project
We require MSVC 1800 as our minimum, so these checks can safely go away; NFC. (It seems this code has been copy/pasted around, unfortunately.)
llvm-svn: 229417
This commit is contained in:
parent
1174cb6549
commit
da9501b25c
|
@ -134,18 +134,13 @@ bool X86_MC::GetCpuIDAndInfoEx(unsigned value, unsigned subleaf, unsigned *rEAX,
|
||||||
"c" (subleaf));
|
"c" (subleaf));
|
||||||
return false;
|
return false;
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
// __cpuidex was added in MSVC++ 9.0 SP1
|
int registers[4];
|
||||||
#if (_MSC_VER > 1500) || (_MSC_VER == 1500 && _MSC_FULL_VER >= 150030729)
|
__cpuidex(registers, value, subleaf);
|
||||||
int registers[4];
|
*rEAX = registers[0];
|
||||||
__cpuidex(registers, value, subleaf);
|
*rEBX = registers[1];
|
||||||
*rEAX = registers[0];
|
*rECX = registers[2];
|
||||||
*rEBX = registers[1];
|
*rEDX = registers[3];
|
||||||
*rECX = registers[2];
|
return false;
|
||||||
*rEDX = registers[3];
|
|
||||||
return false;
|
|
||||||
#else
|
|
||||||
return true;
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue