summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.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 /utils/TableGen/Record.cpp
parent6e49d8b4bf7b5911dc953551672161b8f9a7418f (diff)
downloadllvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.tar.gz
llvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.tar.bz2
llvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.tar.xz
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 'utils/TableGen/Record.cpp')
-rw-r--r--utils/TableGen/Record.cpp13
1 files changed, 7 insertions, 6 deletions
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 <ios>
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<unsigned> &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";