aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-17 01:46:05 +0000
committerChris Lattner <sabre@nondot.org>2008-08-17 01:46:05 +0000
commitd497df5cf5d977522814acef72b8b65f1774408e (patch)
tree179634f591e6506c5862dca9035276f8a3a70ad6
parent66a6b8be97a5d014a0cb710ed8e36c1fe9f735f5 (diff)
rename OutputData to 'write' to match ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54857 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/raw_ostream.h4
-rw-r--r--lib/Support/raw_ostream.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index af3e67b3d3..6d538003fe 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/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/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index ec7ac6d007..e47bccde6c 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/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();
}