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 | 1c89744f32b27ab2710b1fe7bb4ccf7337e574d8 (patch) | |
tree | 11700516617bcdb8fc3441bd8210b7324c08fba3 | |
parent | b6933bc1d075bb8104dd33cdec7547b857c0260d (diff) | |
download | bcm5719-llvm-1c89744f32b27ab2710b1fe7bb4ccf7337e574d8.tar.gz bcm5719-llvm-1c89744f32b27ab2710b1fe7bb4ccf7337e574d8.zip |
Make the helper functions static. No functional change.
llvm-svn: 167501
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index bdbc9bb0ace..8c4c3e24407 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; |