From e7f65d3b71b3f98469e80a41c7b7730790471d60 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 30 Jun 2002 16:07:20 +0000 Subject: [PATCH] Fix anands changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2806 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 10 ++++------ lib/Target/CBackend/Writer.cpp | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index df3fdac6a23..81c10b7ebee 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -23,11 +23,9 @@ #include "Support/STLExtras.h" #include #include -#include using std::string; using std::map; using std::ostream; -using std::cerr; static std::string getConstStrValue(const Constant* CPV); @@ -114,7 +112,7 @@ static std::string getConstStrValue(const Constant* CPV) { } default: - cerr << "Unknown constant type: " << CPV << "\n"; + std::cerr << "Unknown constant type: " << CPV << "\n"; abort(); } } @@ -140,7 +138,7 @@ static string calcTypeNameVar(const Type *Ty, case Type::FloatTyID: return "float " + NameSoFar; case Type::DoubleTyID: return "double " + NameSoFar; default : - cerr << "Unknown primitive type: " << Ty << "\n"; + std::cerr << "Unknown primitive type: " << Ty << "\n"; abort(); } @@ -272,7 +270,7 @@ namespace { void visitGetElementPtrInst(GetElementPtrInst &I); void visitInstruction(Instruction &I) { - cerr << "C Writer does not know about " << I; + std::cerr << "C Writer does not know about " << I; abort(); } @@ -671,7 +669,7 @@ void CWriter::visitBinaryOperator(Instruction &I) { case Instruction::SetGT: Out << " > "; break; case Instruction::Shl : Out << " << "; break; case Instruction::Shr : Out << " >> "; break; - default: cerr << "Invalid operator type!" << I; abort(); + default: std::cerr << "Invalid operator type!" << I; abort(); } if (isa(I.getType())) Out << "(long long)"; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index df3fdac6a23..81c10b7ebee 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -23,11 +23,9 @@ #include "Support/STLExtras.h" #include #include -#include using std::string; using std::map; using std::ostream; -using std::cerr; static std::string getConstStrValue(const Constant* CPV); @@ -114,7 +112,7 @@ static std::string getConstStrValue(const Constant* CPV) { } default: - cerr << "Unknown constant type: " << CPV << "\n"; + std::cerr << "Unknown constant type: " << CPV << "\n"; abort(); } } @@ -140,7 +138,7 @@ static string calcTypeNameVar(const Type *Ty, case Type::FloatTyID: return "float " + NameSoFar; case Type::DoubleTyID: return "double " + NameSoFar; default : - cerr << "Unknown primitive type: " << Ty << "\n"; + std::cerr << "Unknown primitive type: " << Ty << "\n"; abort(); } @@ -272,7 +270,7 @@ namespace { void visitGetElementPtrInst(GetElementPtrInst &I); void visitInstruction(Instruction &I) { - cerr << "C Writer does not know about " << I; + std::cerr << "C Writer does not know about " << I; abort(); } @@ -671,7 +669,7 @@ void CWriter::visitBinaryOperator(Instruction &I) { case Instruction::SetGT: Out << " > "; break; case Instruction::Shl : Out << " << "; break; case Instruction::Shr : Out << " >> "; break; - default: cerr << "Invalid operator type!" << I; abort(); + default: std::cerr << "Invalid operator type!" << I; abort(); } if (isa(I.getType())) Out << "(long long)"; -- 2.34.1