From: Nick Lewycky Date: Wed, 2 Jan 2008 02:49:20 +0000 (+0000) Subject: Don't be rude, emit debugging info where asked to. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aeb5e5cdb7f8544c679642068492f74a14eca60e;p=oota-llvm.git Don't be rude, emit debugging info where asked to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index f7992d74057..e373478f113 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2695,20 +2695,20 @@ static void PrintLoopInfo(std::ostream &OS, const ScalarEvolution *SE, for (Loop::iterator I = L->begin(), E = L->end(); I != E; ++I) PrintLoopInfo(OS, SE, *I); - cerr << "Loop " << L->getHeader()->getName() << ": "; + OS << "Loop " << L->getHeader()->getName() << ": "; SmallVector ExitBlocks; L->getExitBlocks(ExitBlocks); if (ExitBlocks.size() != 1) - cerr << " "; + OS << " "; if (SE->hasLoopInvariantIterationCount(L)) { - cerr << *SE->getIterationCount(L) << " iterations! "; + OS << *SE->getIterationCount(L) << " iterations! "; } else { - cerr << "Unpredictable iteration count. "; + OS << "Unpredictable iteration count. "; } - cerr << "\n"; + OS << "\n"; } void ScalarEvolution::print(std::ostream &OS, const Module* ) const {