aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 22:21:48 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 22:21:48 +0000
commitf5da13367f88f06e3b585dc2263ab6e9ca6c4bf8 (patch)
tree3cf9a9612ba0a90fee9ec668819ae5a69a7bada1 /lib/Target/CBackend/Writer.cpp
parent6e49d8b4bf7b5911dc953551672161b8f9a7418f (diff)
What should be the last unnecessary <iostream>s in the library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r--lib/Target/CBackend/Writer.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index d8fe0e8350..7c0d433676 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -42,9 +42,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Config/config.h"
#include <algorithm>
-#include <iostream>
#include <ios>
-#include <sstream>
using namespace llvm;
namespace {
@@ -229,7 +227,7 @@ namespace {
void visitVAArgInst (VAArgInst &I);
void visitInstruction(Instruction &I) {
- std::cerr << "C Writer does not know about " << I;
+ cerr << "C Writer does not know about " << I;
abort();
}
@@ -375,7 +373,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
case Type::FloatTyID: return Out << "float " << NameSoFar;
case Type::DoubleTyID: return Out << "double " << NameSoFar;
default :
- std::cerr << "Unknown primitive type: " << *Ty << "\n";
+ cerr << "Unknown primitive type: " << *Ty << "\n";
abort();
}
@@ -726,8 +724,8 @@ void CWriter::printConstant(Constant *CPV) {
}
default:
- std::cerr << "CWriter Error: Unhandled constant expression: "
- << *CE << "\n";
+ cerr << "CWriter Error: Unhandled constant expression: "
+ << *CE << "\n";
abort();
}
} else if (isa<UndefValue>(CPV) && CPV->getType()->isFirstClassType()) {
@@ -901,7 +899,7 @@ void CWriter::printConstant(Constant *CPV) {
}
// FALL THROUGH
default:
- std::cerr << "Unknown constant type: " << *CPV << "\n";
+ cerr << "Unknown constant type: " << *CPV << "\n";
abort();
}
}
@@ -1973,7 +1971,7 @@ void CWriter::visitBinaryOperator(Instruction &I) {
case Instruction::Shl : Out << " << "; break;
case Instruction::LShr:
case Instruction::AShr: Out << " >> "; break;
- default: std::cerr << "Invalid operator type!" << I; abort();
+ default: cerr << "Invalid operator type!" << I; abort();
}
writeOperandWithCast(I.getOperand(1), I.getOpcode());
@@ -2099,9 +2097,9 @@ void CWriter::visitCallInst(CallInst &I) {
Out << ", ";
// Output the last argument to the enclosing function...
if (I.getParent()->getParent()->arg_empty()) {
- std::cerr << "The C backend does not currently support zero "
- << "argument varargs functions, such as '"
- << I.getParent()->getParent()->getName() << "'!\n";
+ cerr << "The C backend does not currently support zero "
+ << "argument varargs functions, such as '"
+ << I.getParent()->getParent()->getName() << "'!\n";
abort();
}
writeOperand(--I.getParent()->getParent()->arg_end());