[X86] Remove an unused function from release builds. Reported by gccs unused function...
authorCraig Topper <craig.topper@gmail.com>
Wed, 22 Mar 2017 06:07:58 +0000 (06:07 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 22 Mar 2017 06:07:58 +0000 (06:07 +0000)
llvm-svn: 298485

llvm/lib/Target/X86/X86VZeroUpper.cpp

index 41f6219..d17dfac 100644 (file)
@@ -97,6 +97,7 @@ FunctionPass *llvm::createX86IssueVZeroUpperPass() {
   return new VZeroUpperInserter();
 }
 
+#ifndef NDEBUG
 const char* VZeroUpperInserter::getBlockExitStateName(BlockExitState ST) {
   switch (ST) {
     case PASS_THROUGH: return "Pass-through";
@@ -105,6 +106,7 @@ const char* VZeroUpperInserter::getBlockExitStateName(BlockExitState ST) {
   }
   llvm_unreachable("Invalid block exit state.");
 }
+#endif
 
 /// VZEROUPPER cleans state that is related to Y/ZMM0-15 only.
 /// Thus, there is no need to check for Y/ZMM16 and above.