From f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 7 Dec 2006 22:21:48 +0000 Subject: What should be the last unnecessary s in the library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32333 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'utils/TableGen/Record.cpp') diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index c1ef4ed82f..94e0cb472f 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -13,6 +13,7 @@ #include "Record.h" #include "llvm/Support/DataTypes.h" +#include "llvm/Support/Streams.h" #include using namespace llvm; @@ -21,7 +22,7 @@ using namespace llvm; // Type implementations //===----------------------------------------------------------------------===// -void RecTy::dump() const { print(std::cerr); } +void RecTy::dump() const { print(*cerr.stream()); } Init *BitRecTy::convertValue(BitsInit *BI) { if (BI->getNumBits() != 1) return 0; // Only accept if just one bit! @@ -213,7 +214,7 @@ bool RecordRecTy::baseClassOf(const RecordRecTy *RHS) const { // Initializer implementations //===----------------------------------------------------------------------===// -void Init::dump() const { return print(std::cerr); } +void Init::dump() const { return print(*cerr.stream()); } Init *BitsInit::convertInitializerBitRange(const std::vector &Bits) { BitsInit *BI = new BitsInit(Bits.size()); @@ -602,7 +603,7 @@ Init *FieldInit::resolveReferences(Record &R, const RecordVal *RV) { if (NewRec != Rec) { dump(); - NewRec->dump(); std::cerr << "\n"; + NewRec->dump(); cerr << "\n"; return new FieldInit(NewRec, FieldName); } return this; @@ -646,7 +647,7 @@ RecordVal::RecordVal(const std::string &N, RecTy *T, unsigned P) assert(Value && "Cannot create unset value for current type!"); } -void RecordVal::dump() const { std::cerr << *this; } +void RecordVal::dump() const { cerr << *this; } void RecordVal::print(std::ostream &OS, bool PrintSem) const { if (getPrefix()) OS << "field "; @@ -681,7 +682,7 @@ void Record::resolveReferencesTo(const RecordVal *RV) { } -void Record::dump() const { std::cerr << *this; } +void Record::dump() const { cerr << *this; } std::ostream &llvm::operator<<(std::ostream &OS, const Record &R) { OS << R.getName(); @@ -874,7 +875,7 @@ std::string Record::getValueAsCode(const std::string &FieldName) const { } -void RecordKeeper::dump() const { std::cerr << *this; } +void RecordKeeper::dump() const { cerr << *this; } std::ostream &llvm::operator<<(std::ostream &OS, const RecordKeeper &RK) { OS << "------------- Classes -----------------\n"; -- cgit v1.2.3