mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
Allow output of manipulators for GCC 2.96 compatibility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a8738c844
commit
1c3d5169be
@ -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…
Reference in New Issue
Block a user