mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-10 18:11:26 +00:00
Make helper function static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195650 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
761bf235a8
commit
1b4c8c1fc8
@ -98,8 +98,9 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX, unsigned *rEBX,
|
|||||||
/// GetX86CpuIDAndInfoEx - Execute the specified cpuid with subleaf and return the
|
/// GetX86CpuIDAndInfoEx - Execute the specified cpuid with subleaf and return the
|
||||||
/// 4 values in the specified arguments. If we can't run cpuid on the host,
|
/// 4 values in the specified arguments. If we can't run cpuid on the host,
|
||||||
/// return true.
|
/// return true.
|
||||||
bool GetX86CpuIDAndInfoEx(unsigned value, unsigned subleaf, unsigned *rEAX,
|
static bool GetX86CpuIDAndInfoEx(unsigned value, unsigned subleaf,
|
||||||
unsigned *rEBX, unsigned *rECX, unsigned *rEDX) {
|
unsigned *rEAX, unsigned *rEBX, unsigned *rECX,
|
||||||
|
unsigned *rEDX) {
|
||||||
#if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
|
#if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
// gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually.
|
// gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user