mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
rename OutputData to 'write' to match ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
66a6b8be97
commit
d497df5cf5
@ -66,10 +66,10 @@ public:
|
||||
}
|
||||
|
||||
raw_ostream &operator<<(const char *Str) {
|
||||
return OutputData(Str, strlen(Str));
|
||||
return write(Str, strlen(Str));
|
||||
}
|
||||
|
||||
raw_ostream &OutputData(const char *Ptr, unsigned Size) {
|
||||
raw_ostream &write(const char *Ptr, unsigned Size) {
|
||||
if (OutBufCur+Size > OutBufEnd)
|
||||
flush_impl();
|
||||
|
||||
|
@ -51,7 +51,7 @@ raw_fd_ostream::~raw_fd_ostream() {
|
||||
|
||||
void raw_fd_ostream::flush_impl() {
|
||||
if (OutBufCur-OutBufStart)
|
||||
write(FD, OutBufStart, OutBufCur-OutBufStart);
|
||||
::write(FD, OutBufStart, OutBufCur-OutBufStart);
|
||||
HandleFlush();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user