diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-11-06 23:36:00 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-11-06 23:36:00 +0000 |
commit | d8eae8ba05c53f966f6d9801c3f5305a8dfbf1dd (patch) | |
tree | f909e7032407ae4126e304064ff8e113d635f1f9 /lib | |
parent | e7bd51980a1341fb60322e5922cfcc0c9b92b165 (diff) | |
download | llvm-d8eae8ba05c53f966f6d9801c3f5305a8dfbf1dd.tar.gz llvm-d8eae8ba05c53f966f6d9801c3f5305a8dfbf1dd.tar.bz2 llvm-d8eae8ba05c53f966f6d9801c3f5305a8dfbf1dd.tar.xz |
Make the helper functions static. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index bdbc9bb0ac..8c4c3e2440 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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; |