mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Allow output of manipulators for GCC 2.96 compatibility
llvm-svn: 1365
This commit is contained in:
parent
3d0b96e43c
commit
147acfd1bd
@ -62,12 +62,16 @@ public:
|
||||
inline CachedWriter &operator<<(const PointerType *X) {
|
||||
return *this << (const Value*)X;
|
||||
}
|
||||
|
||||
inline CachedWriter &operator<<(ostream &(&Manip)(ostream &)) {
|
||||
Out << Manip; return *this;
|
||||
}
|
||||
|
||||
template<class X>
|
||||
inline CachedWriter &operator<<(const X &v) {
|
||||
Out << v;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
template<class X>
|
||||
inline CachedWriter &operator<<(CachedWriter &CW, const X &v) {
|
||||
CW.Out << v;
|
||||
return CW;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user