diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-15 06:39:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-15 06:39:13 +0000 |
commit | 787e71df693e94cc512f3e439bf91609a8ec9bae (patch) | |
tree | 56b020bd3a6fda52f472b97f75876052bee34a00 /lib/Target/R600/AMDILISelLowering.cpp | |
parent | 793fd8d0d6d18d3b6057fce8e8f55269cf34400c (diff) | |
download | llvm-787e71df693e94cc512f3e439bf91609a8ec9bae.tar.gz llvm-787e71df693e94cc512f3e439bf91609a8ec9bae.tar.bz2 llvm-787e71df693e94cc512f3e439bf91609a8ec9bae.tar.xz |
Make some arrays 'static const'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/AMDILISelLowering.cpp')
-rw-r--r-- | lib/Target/R600/AMDILISelLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/R600/AMDILISelLowering.cpp b/lib/Target/R600/AMDILISelLowering.cpp index 95e785b7a1..970787ef31 100644 --- a/lib/Target/R600/AMDILISelLowering.cpp +++ b/lib/Target/R600/AMDILISelLowering.cpp @@ -39,7 +39,7 @@ using namespace llvm; // TargetLowering Class Implementation Begins //===----------------------------------------------------------------------===// void AMDGPUTargetLowering::InitAMDILLowering() { - int types[] = { + static const int types[] = { (int)MVT::i8, (int)MVT::i16, (int)MVT::i32, @@ -58,19 +58,19 @@ void AMDGPUTargetLowering::InitAMDILLowering() { (int)MVT::v2i64 }; - int IntTypes[] = { + static const int IntTypes[] = { (int)MVT::i8, (int)MVT::i16, (int)MVT::i32, (int)MVT::i64 }; - int FloatTypes[] = { + static const int FloatTypes[] = { (int)MVT::f32, (int)MVT::f64 }; - int VectorTypes[] = { + static const int VectorTypes[] = { (int)MVT::v2i8, (int)MVT::v4i8, (int)MVT::v2i16, |