diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-04 21:10:35 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-04 21:10:35 +0000 |
| commit | a415858fc2841134cc33767ceb1ac09296111a84 (patch) | |
| tree | 64696dbf3be751b8d564b6cfbfc600733d84f823 | |
| parent | 603b1ca393a133b2dd4e4a139e4e8e4fde3a2705 (diff) | |
| download | bcm5719-llvm-a415858fc2841134cc33767ceb1ac09296111a84.tar.gz bcm5719-llvm-a415858fc2841134cc33767ceb1ac09296111a84.zip | |
Revert ostream back to reference: the only user (llvm-tv) no longer needs it.
llvm-svn: 14029
| -rw-r--r-- | llvm/include/llvm/Assembly/CachedWriter.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/include/llvm/Assembly/CachedWriter.h b/llvm/include/llvm/Assembly/CachedWriter.h index b3f964de5a4..1306e379214 100644 --- a/llvm/include/llvm/Assembly/CachedWriter.h +++ b/llvm/include/llvm/Assembly/CachedWriter.h @@ -34,7 +34,7 @@ class CachedWriter { AssemblyWriter *AW; SlotMachine *SC; bool SymbolicTypes; - std::ostream *Out; + std::ostream &Out; public: enum TypeWriter { @@ -43,9 +43,9 @@ public: }; 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) - : AW(0), SC(0), SymbolicTypes(false), Out(&O) { + : AW(0), SC(0), SymbolicTypes(false), Out(O) { setModule(M); } ~CachedWriter(); @@ -63,11 +63,11 @@ public: inline CachedWriter &operator<<(const PointerType *X); inline CachedWriter &operator<<(std::ostream &(&Manip)(std::ostream &)) { - *Out << Manip; return *this; + Out << Manip; return *this; } inline CachedWriter& operator<<(const char *X) { - *Out << X; + Out << X; return *this; } @@ -75,9 +75,6 @@ public: SymbolicTypes = (tw == SymTypeOn); return *this; } - - inline std::ostream& getStream() { return *Out; } - void setStream(std::ostream &os); }; } // End llvm namespace |

