From: Nadav Rotem Date: Tue, 6 Nov 2012 23:36:00 +0000 (+0000) Subject: Make the helper functions static. No functional change. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c89744f32b27ab2710b1fe7bb4ccf7337e574d8;p=platform%2Fupstream%2Fllvm.git Make the helper functions static. No functional change. llvm-svn: 167501 --- diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index bdbc9bb..8c4c3e2 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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;