OSDN Git Service

[Support] Make helper function static. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 10 Jul 2016 16:11:53 +0000 (16:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 10 Jul 2016 16:11:53 +0000 (16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp

index e1ed96a..12ac19d 100644 (file)
@@ -703,8 +703,8 @@ static void getAMDProcessorTypeAndSubtype(unsigned int Family,
   }
 }
 
-unsigned getAvailableFeatures(unsigned int ECX, unsigned int EDX,
-                              unsigned MaxLeaf) {
+static unsigned getAvailableFeatures(unsigned int ECX, unsigned int EDX,
+                                     unsigned MaxLeaf) {
   unsigned Features = 0;
   unsigned int EAX, EBX;
   Features |= (((EDX >> 23) & 1) << FEATURE_MMX);