[llvm-commits] [llvm] r167501 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Nadav Rotem nrotem at apple.com
Tue Nov 6 15:36:00 PST 2012


Author: nadav
Date: Tue Nov  6 17:36:00 2012
New Revision: 167501

URL: http://llvm.org/viewvc/llvm-project?rev=167501&view=rev
Log:
Make the helper functions static. No functional change.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=167501&r1=167500&r2=167501&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Nov  6 17:36:00 2012
@@ -17517,7 +17517,8 @@
   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 @@
   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;





More information about the llvm-commits mailing list