[llvm-commits] [llvm] r54857 - in /llvm/trunk: include/llvm/Support/raw_ostream.h lib/Support/raw_ostream.cpp
Chris Lattner
sabre at nondot.org
Sat Aug 16 18:46:05 PDT 2008
Author: lattner
Date: Sat Aug 16 20:46:05 2008
New Revision: 54857
URL: http://llvm.org/viewvc/llvm-project?rev=54857&view=rev
Log:
rename OutputData to 'write' to match ostream.
Modified:
llvm/trunk/include/llvm/Support/raw_ostream.h
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=54857&r1=54856&r2=54857&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Sat Aug 16 20:46:05 2008
@@ -66,10 +66,10 @@
}
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();
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=54857&r1=54856&r2=54857&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Sat Aug 16 20:46:05 2008
@@ -51,7 +51,7 @@
void raw_fd_ostream::flush_impl() {
if (OutBufCur-OutBufStart)
- write(FD, OutBufStart, OutBufCur-OutBufStart);
+ ::write(FD, OutBufStart, OutBufCur-OutBufStart);
HandleFlush();
}
More information about the llvm-commits
mailing list