diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-17 15:25:05 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-17 15:25:05 +0000 |
| commit | 8dd69f88ea4538085e21b384967b31daab790653 (patch) | |
| tree | e9d49887d39ab1a8780604b4e761b10fa21bed52 /llvm/lib/Transforms/Scalar/SCCP.cpp | |
| parent | c4ce58d8fee74ebea0ed3dbe563fee933226a3c9 (diff) | |
| download | bcm5719-llvm-8dd69f88ea4538085e21b384967b31daab790653.tar.gz bcm5719-llvm-8dd69f88ea4538085e21b384967b31daab790653.zip | |
Fix debug output to include a newline after printing a Value, now
that Value's operator<< doesn't include one.
llvm-svn: 79240
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index c0c44b56fe0..4a9675aa02d 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -262,14 +262,14 @@ private: // inline void markConstant(LatticeVal &IV, Value *V, Constant *C) { if (IV.markConstant(C)) { - DEBUG(errs() << "markConstant: " << *C << ": " << *V); + DEBUG(errs() << "markConstant: " << *C << ": " << *V << '\n'); InstWorkList.push_back(V); } } inline void markForcedConstant(LatticeVal &IV, Value *V, Constant *C) { IV.markForcedConstant(C); - DEBUG(errs() << "markForcedConstant: " << *C << ": " << *V); + DEBUG(errs() << "markForcedConstant: " << *C << ": " << *V << '\n'); InstWorkList.push_back(V); } @@ -286,7 +286,7 @@ private: if (Function *F = dyn_cast<Function>(V)) errs() << "Function '" << F->getName() << "'\n"; else - errs() << *V); + errs() << *V << '\n'); // Only instructions go on the work list OverdefinedInstWorkList.push_back(V); } @@ -516,7 +516,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) { return false; } else { #ifndef NDEBUG - cerr << "Unknown terminator instruction: " << *TI; + cerr << "Unknown terminator instruction: " << *TI << '\n'; #endif llvm_unreachable(0); } @@ -1278,7 +1278,7 @@ void SCCPSolver::Solve() { Value *I = OverdefinedInstWorkList.back(); OverdefinedInstWorkList.pop_back(); - DEBUG(errs() << "\nPopped off OI-WL: " << *I); + DEBUG(errs() << "\nPopped off OI-WL: " << *I << '\n'); // "I" got into the work list because it either made the transition from // bottom to constant @@ -1296,7 +1296,7 @@ void SCCPSolver::Solve() { Value *I = InstWorkList.back(); InstWorkList.pop_back(); - DEBUG(errs() << "\nPopped off I-WL: " << *I); + DEBUG(errs() << "\nPopped off I-WL: " << *I << '\n'); // "I" got into the work list because it either made the transition from // bottom to constant @@ -1316,7 +1316,7 @@ void SCCPSolver::Solve() { BasicBlock *BB = BBWorkList.back(); BBWorkList.pop_back(); - DEBUG(errs() << "\nPopped off BBWL: " << *BB); + DEBUG(errs() << "\nPopped off BBWL: " << *BB << '\n'); // Notify all instructions in this basic block that they are newly // executable. |

