rename OutputData to 'write' to match ostream.
authorChris Lattner <sabre@nondot.org>
Sun, 17 Aug 2008 01:46:05 +0000 (01:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Aug 2008 01:46:05 +0000 (01:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54857 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h
lib/Support/raw_ostream.cpp

index af3e67b3d33cd05c8b7633bc0679f36819cc5a0d..6d538003fede64abb946866fefcb0ad48449cc7d 100644 (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();
     
index ec7ac6d007476b8ff339467623a057a5f4ba0b91..e47bccde6cb539c07f24ee393f4123ad2cdfc5d4 100644 (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();
 }