From 9217738fa893464d60281d2349b925d7eeac9165 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 1 Dec 2016 08:48:14 +0000 Subject: [PATCH] [SCCP] Switch over to DEBUG() and drop an #ifdef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288325 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SCCP.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index a6c28d50699..32f486744f5 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -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(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!"); } -- 2.50.1