1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

rename OutputData to 'write' to match ostream.

llvm-svn: 54857
This commit is contained in:
Chris Lattner 2008-08-17 01:46:05 +00:00
parent fd2dd46dcd
commit eef022091c
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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();
}