diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:37:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:37:46 +0000 |
commit | b25de3ff6051d69db87c12c8892cfa37ce6e7d64 (patch) | |
tree | a6d3f90619240ea8767377f971680ca7896975d5 /llvm/lib/Target/CBackend | |
parent | 82e57a6b481bc016e85e39f254f3648594ddf8d2 (diff) | |
download | bcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.tar.gz bcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.zip |
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups.
llvm-svn: 79819
Diffstat (limited to 'llvm/lib/Target/CBackend')
-rw-r--r-- | llvm/lib/Target/CBackend/CBackend.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index 8099bb3e3b1..6fea22f14d1 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -319,7 +319,7 @@ namespace { void visitInstruction(Instruction &I) { #ifndef NDEBUG - cerr << "C Writer does not know about " << I; + errs() << "C Writer does not know about " << I; #endif llvm_unreachable(0); } @@ -506,7 +506,7 @@ CWriter::printSimpleType(formatted_raw_ostream &Out, const Type *Ty, default: #ifndef NDEBUG - cerr << "Unknown primitive type: " << *Ty << "\n"; + errs() << "Unknown primitive type: " << *Ty << "\n"; #endif llvm_unreachable(0); } @@ -553,7 +553,7 @@ CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned, default: #ifndef NDEBUG - cerr << "Unknown primitive type: " << *Ty << "\n"; + errs() << "Unknown primitive type: " << *Ty << "\n"; #endif llvm_unreachable(0); } @@ -1110,7 +1110,7 @@ void CWriter::printConstant(Constant *CPV, bool Static) { } default: #ifndef NDEBUG - cerr << "CWriter Error: Unhandled constant expression: " + errs() << "CWriter Error: Unhandled constant expression: " << *CE << "\n"; #endif llvm_unreachable(0); @@ -1323,7 +1323,7 @@ void CWriter::printConstant(Constant *CPV, bool Static) { // FALL THROUGH default: #ifndef NDEBUG - cerr << "Unknown constant type: " << *CPV << "\n"; + errs() << "Unknown constant type: " << *CPV << "\n"; #endif llvm_unreachable(0); } @@ -2735,7 +2735,7 @@ void CWriter::visitBinaryOperator(Instruction &I) { case Instruction::AShr: Out << " >> "; break; default: #ifndef NDEBUG - cerr << "Invalid operator type!" << I; + errs() << "Invalid operator type!" << I; #endif llvm_unreachable(0); } @@ -2776,7 +2776,7 @@ void CWriter::visitICmpInst(ICmpInst &I) { case ICmpInst::ICMP_SGT: Out << " > "; break; default: #ifndef NDEBUG - cerr << "Invalid icmp predicate!" << I; + errs() << "Invalid icmp predicate!" << I; #endif llvm_unreachable(0); } |