diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-01-02 02:49:20 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-01-02 02:49:20 +0000 |
commit | e5da19163704fdbefacd60b48d23df3dd6155b26 (patch) | |
tree | 27d89e25bc924bfe321f9aa0ca2c062a31be0836 | |
parent | 8187543db9afdc5d465b604ce0bddea7695c78ab (diff) | |
download | external_llvm-e5da19163704fdbefacd60b48d23df3dd6155b26.zip external_llvm-e5da19163704fdbefacd60b48d23df3dd6155b26.tar.gz external_llvm-e5da19163704fdbefacd60b48d23df3dd6155b26.tar.bz2 |
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
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index f7992d7..e373478 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<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 { |