diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-17 01:46:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-17 01:46:05 +0000 |
commit | 3394262a33f21d654525b033a486a5c905757f4e (patch) | |
tree | 3115ef0af8c3d91907ac7c37604510459fc8cc44 /llvm | |
parent | 3bed934934ad8c61050153522b983244600d774d (diff) | |
download | bcm5719-llvm-3394262a33f21d654525b033a486a5c905757f4e.tar.gz bcm5719-llvm-3394262a33f21d654525b033a486a5c905757f4e.zip |
rename OutputData to 'write' to match ostream.
llvm-svn: 54857
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/raw_ostream.h | 4 | ||||
-rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h index af3e67b3d33..6d538003fed 100644 --- a/llvm/include/llvm/Support/raw_ostream.h +++ b/llvm/include/llvm/Support/raw_ostream.h @@ -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(); diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index ec7ac6d0074..e47bccde6cb 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/lib/Support/raw_ostream.cpp @@ -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(); } |