[llvm] r195650 - Make helper function static.

Benjamin Kramer benny.kra at googlemail.com
Mon Nov 25 07:40:24 PST 2013


Author: d0k
Date: Mon Nov 25 09:40:24 2013
New Revision: 195650

URL: http://llvm.org/viewvc/llvm-project?rev=195650&view=rev
Log:
Make helper function static.

Modified:
    llvm/trunk/lib/Support/Host.cpp

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=195650&r1=195649&r2=195650&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Mon Nov 25 09:40:24 2013
@@ -98,8 +98,9 @@ static bool GetX86CpuIDAndInfo(unsigned
 /// 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,
 /// return true.
-bool GetX86CpuIDAndInfoEx(unsigned value, unsigned subleaf, unsigned *rEAX,
-                          unsigned *rEBX, unsigned *rECX, unsigned *rEDX) {
+static bool GetX86CpuIDAndInfoEx(unsigned value, unsigned subleaf,
+                                 unsigned *rEAX, unsigned *rEBX, unsigned *rECX,
+                                 unsigned *rEDX) {
 #if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
   #if defined(__GNUC__)
     // gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually.





More information about the llvm-commits mailing list