AArch64A57FPLoadBalancing.cpp: Define ColorNames in !NDEBUG.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Aug 2014 17:00:59 +0000 (17:00 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Aug 2014 17:00:59 +0000 (17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215226 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp

index 195a48e54a5b33ba7e8407ef9a98332fcb71912c..705679b570e64d4fcd7f5109ea63ffa8c60d6986 100644 (file)
@@ -107,7 +107,9 @@ namespace {
 /// A "color", which is either even or odd. Yes, these aren't really colors
 /// but the algorithm is conceptually doing two-color graph coloring.
 enum class Color { Even, Odd };
+#ifndef NDEBUG
 static const char *ColorNames[2] = { "Even", "Odd" };
+#endif
 
 class Chain;