Make the helper functions static. No functional change.
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index bdbc9bb0ace86b5230c12902cebf98a8aee5186c..8c4c3e24407970bad4134f64350d658bc9ab004d 100644 (file)
@@ -17517,7 +17517,8 @@ struct X86CostTblEntry {
   unsigned Cost;
 };
 
-int FindInTable(const X86CostTblEntry *Tbl, unsigned len, int ISD, MVT Ty) {
+static int
+FindInTable(const X86CostTblEntry *Tbl, unsigned len, int ISD, MVT Ty) {
   for (unsigned int i = 0; i < len; ++i)
     if (Tbl[i].ISD == ISD && Tbl[i].Type == Ty)
       return i;
@@ -17533,8 +17534,9 @@ struct X86TypeConversionCostTblEntry {
   unsigned Cost;
 };
 
-int FindInConvertTable(const X86TypeConversionCostTblEntry *Tbl, unsigned len,
-                       int ISD, MVT Dst, MVT Src) {
+static int
+FindInConvertTable(const X86TypeConversionCostTblEntry *Tbl, unsigned len,
+                   int ISD, MVT Dst, MVT Src) {
   for (unsigned int i = 0; i < len; ++i)
     if (Tbl[i].ISD == ISD && Tbl[i].Src == Src && Tbl[i].Dst == Dst)
       return i;