llvm.org GIT mirror llvm / d497df5
rename OutputData to 'write' to match ostream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54857 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
6565 }
6666
6767 raw_ostream &operator<<(const char *Str) {
68 return OutputData(Str, strlen(Str));
68 return write(Str, strlen(Str));
6969 }
7070
71 raw_ostream &OutputData(const char *Ptr, unsigned Size) {
71 raw_ostream &write(const char *Ptr, unsigned Size) {
7272 if (OutBufCur+Size > OutBufEnd)
7373 flush_impl();
7474
5050
5151 void raw_fd_ostream::flush_impl() {
5252 if (OutBufCur-OutBufStart)
53 write(FD, OutBufStart, OutBufCur-OutBufStart);
53 ::write(FD, OutBufStart, OutBufCur-OutBufStart);
5454 HandleFlush();
5555 }
5656