[llvm] r215226 - AArch64A57FPLoadBalancing.cpp: Define ColorNames in !NDEBUG.

NAKAMURA Takumi geek4civic at gmail.com
Fri Aug 8 10:00:59 PDT 2014


Author: chapuni
Date: Fri Aug  8 12:00:59 2014
New Revision: 215226

URL: http://llvm.org/viewvc/llvm-project?rev=215226&view=rev
Log:
AArch64A57FPLoadBalancing.cpp: Define ColorNames in !NDEBUG.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp?rev=215226&r1=215225&r2=215226&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp Fri Aug  8 12:00:59 2014
@@ -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;
 





More information about the llvm-commits mailing list