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
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 8099bb3..6fea22f 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -319,7 +319,7 @@
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 @@
default:
#ifndef NDEBUG
- cerr << "Unknown primitive type: " << *Ty << "\n";
+ errs() << "Unknown primitive type: " << *Ty << "\n";
#endif
llvm_unreachable(0);
}
@@ -553,7 +553,7 @@
default:
#ifndef NDEBUG
- cerr << "Unknown primitive type: " << *Ty << "\n";
+ errs() << "Unknown primitive type: " << *Ty << "\n";
#endif
llvm_unreachable(0);
}
@@ -1110,7 +1110,7 @@
}
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 @@
// 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 @@
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 @@
case ICmpInst::ICMP_SGT: Out << " > "; break;
default:
#ifndef NDEBUG
- cerr << "Invalid icmp predicate!" << I;
+ errs() << "Invalid icmp predicate!" << I;
#endif
llvm_unreachable(0);
}