[llvm-commits] [llvm] r45485 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Nick Lewycky nicholas at mxc.ca
Tue Jan 1 18:49:20 PST 2008


Author: nicholas
Date: Tue Jan  1 20:49:20 2008
New Revision: 45485

URL: http://llvm.org/viewvc/llvm-project?rev=45485&view=rev
Log:
Don't be rude, emit debugging info where asked to.

Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=45485&r1=45484&r2=45485&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Jan  1 20:49:20 2008
@@ -2695,20 +2695,20 @@
   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<BasicBlock*, 8> ExitBlocks;
   L->getExitBlocks(ExitBlocks);
   if (ExitBlocks.size() != 1)
-    cerr << "<multiple exits> ";
+    OS << "<multiple exits> ";
 
   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 {





More information about the llvm-commits mailing list