mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
add a write method.
llvm-svn: 59595
This commit is contained in:
parent
797dcb3ef7
commit
e111ce1265
@ -64,6 +64,12 @@ namespace llvm {
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename Ty>
|
||||
BaseStream &write(const Ty &A, unsigned N) {
|
||||
if (Stream) Stream->write(A, N);
|
||||
return *this;
|
||||
}
|
||||
|
||||
operator StreamTy* () { return Stream; }
|
||||
|
||||
bool operator == (const StreamTy &S) { return &S == Stream; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user