1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Revert ostream back to reference: the only user (llvm-tv) no longer needs it.

llvm-svn: 14029
This commit is contained in:
Misha Brukman 2004-06-04 21:10:35 +00:00
parent 6ec14eee8b
commit b07dadab93

View File

@ -34,7 +34,7 @@ class CachedWriter {
AssemblyWriter *AW; AssemblyWriter *AW;
SlotMachine *SC; SlotMachine *SC;
bool SymbolicTypes; bool SymbolicTypes;
std::ostream *Out; std::ostream &Out;
public: public:
enum TypeWriter { enum TypeWriter {
@ -43,9 +43,9 @@ public:
}; };
CachedWriter(std::ostream &O = std::cout) CachedWriter(std::ostream &O = std::cout)
: AW(0), SC(0), SymbolicTypes(false), Out(&O) { } : AW(0), SC(0), SymbolicTypes(false), Out(O) { }
CachedWriter(const Module *M, std::ostream &O = std::cout) CachedWriter(const Module *M, std::ostream &O = std::cout)
: AW(0), SC(0), SymbolicTypes(false), Out(&O) { : AW(0), SC(0), SymbolicTypes(false), Out(O) {
setModule(M); setModule(M);
} }
~CachedWriter(); ~CachedWriter();
@ -63,11 +63,11 @@ public:
inline CachedWriter &operator<<(const PointerType *X); inline CachedWriter &operator<<(const PointerType *X);
inline CachedWriter &operator<<(std::ostream &(&Manip)(std::ostream &)) { inline CachedWriter &operator<<(std::ostream &(&Manip)(std::ostream &)) {
*Out << Manip; return *this; Out << Manip; return *this;
} }
inline CachedWriter& operator<<(const char *X) { inline CachedWriter& operator<<(const char *X) {
*Out << X; Out << X;
return *this; return *this;
} }
@ -75,9 +75,6 @@ public:
SymbolicTypes = (tw == SymTypeOn); SymbolicTypes = (tw == SymTypeOn);
return *this; return *this;
} }
inline std::ostream& getStream() { return *Out; }
void setStream(std::ostream &os);
}; };
} // End llvm namespace } // End llvm namespace