[SCCP] Switch over to DEBUG() and drop an #ifdef.

llvm-svn: 288325
This commit is contained in:
Davide Italiano 2016-12-01 08:48:14 +00:00
parent e3bdd615c1
commit 33af6fe71e

View 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!");
}