diff options
author | Davide Italiano <davide@freebsd.org> | 2016-12-01 08:48:14 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-12-01 08:48:14 +0000 |
commit | 9217738fa893464d60281d2349b925d7eeac9165 (patch) | |
tree | 4c8f3aba6a41c6b9d9c25652000919187fb65261 /lib/Transforms/Scalar/SCCP.cpp | |
parent | 236801ef989e90b133adc8366218af922bbc0b6e (diff) |
[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
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 8 |
1 files 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<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!"); } |