]> granicus.if.org Git - llvm/commitdiff
[SCCP] Switch over to DEBUG() and drop an #ifdef.
authorDavide Italiano <davide@freebsd.org>
Thu, 1 Dec 2016 08:48:14 +0000 (08:48 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 1 Dec 2016 08:48:14 +0000 (08:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288325 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index a6c28d506990d7f42a44a04100a891231ed98566..32f486744f5fc042e279cacc8da930e6a4ed3df9 100644 (file)
@@ -616,9 +616,7 @@ void SCCPSolver::getFeasibleSuccessors(TerminatorInst &TI,
     return;
   }
 
-#ifndef NDEBUG
-  dbgs() << "Unknown terminator instruction: " << TI << '\n';
-#endif
+  DEBUG(dbgs() << "Unknown terminator instruction: " << TI << '\n');
   llvm_unreachable("SCCP: Don't know how to handle this terminator!");
 }
 
@@ -672,9 +670,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
   if (isa<IndirectBrInst>(TI))
     return true;
 
-#ifndef NDEBUG
-  dbgs() << "Unknown terminator instruction: " << *TI << '\n';
-#endif
+  DEBUG(dbgs() << "Unknown terminator instruction: " << *TI << '\n');
   llvm_unreachable("SCCP: Don't know how to handle this terminator!");
 }