diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:49:33 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:49:33 +0000 |
| commit | a57cea2e2e8da79db157a72fa4cae70f07dbd762 (patch) | |
| tree | 9751a7d28fb28e71a3126812b745491fa4d01f87 /llvm | |
| parent | d9d9039e13fa5ec9a45f33882d5b5b55b16c5df1 (diff) | |
| download | bcm5719-llvm-a57cea2e2e8da79db157a72fa4cae70f07dbd762.tar.gz bcm5719-llvm-a57cea2e2e8da79db157a72fa4cae70f07dbd762.zip | |
Allow output of manipulators for GCC 2.96 compatibility
llvm-svn: 1365
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Assembly/CachedWriter.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/include/llvm/Assembly/CachedWriter.h b/llvm/include/llvm/Assembly/CachedWriter.h index 7996982de49..af1b246fa65 100644 --- a/llvm/include/llvm/Assembly/CachedWriter.h +++ b/llvm/include/llvm/Assembly/CachedWriter.h @@ -62,12 +62,16 @@ public: inline CachedWriter &operator<<(const PointerType *X) { return *this << (const Value*)X; } -}; -template<class X> -inline CachedWriter &operator<<(CachedWriter &CW, const X &v) { - CW.Out << v; - return CW; -} + inline CachedWriter &operator<<(ostream &(&Manip)(ostream &)) { + Out << Manip; return *this; + } + + template<class X> + inline CachedWriter &operator<<(const X &v) { + Out << v; + return *this; + } +}; #endif |

