aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 04:37:46 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 04:37:46 +0000
commitbdff548e4dd577a72094d57b282de4e765643b96 (patch)
tree71c6617214b134968352b854c8f82ce8c89e1282 /lib/Target/CBackend/CBackend.cpp
parent405ce8db96f7a3a5a4c3da0f71d2ca54d30316f0 (diff)
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 8099bb3e3b..6fea22f14d 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/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);
}