summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-20 16:39:41 +0000
committerDan Gohman <gohman@apple.com>2010-08-20 16:39:41 +0000
commit443f2d6426d52b0921564173ff0877cf3782040c (patch)
tree4904df9bf4066918352761b311b79cf68ef38684 /llvm/lib/Support
parente14426aaca70a2b279fbb44aac7afd45833c96c3 (diff)
downloadbcm5719-llvm-443f2d6426d52b0921564173ff0877cf3782040c.tar.gz
bcm5719-llvm-443f2d6426d52b0921564173ff0877cf3782040c.zip
Delete raw_stdout_ostream and raw_stderr_ostream, which are unused
outside of outs() and errs() themselves, and they don't really need custom classes. llvm-svn: 111642
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index a0614bf33ed..9915b0c8fd2 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -543,27 +543,19 @@ bool raw_fd_ostream::is_displayed() const {
// raw_stdout/err_ostream
//===----------------------------------------------------------------------===//
-// Set buffer settings to model stdout and stderr behavior.
-// Set standard error to be unbuffered by default.
-raw_stdout_ostream::raw_stdout_ostream():raw_fd_ostream(STDOUT_FILENO, false) {}
-raw_stderr_ostream::raw_stderr_ostream():raw_fd_ostream(STDERR_FILENO, false,
- true) {}
-
-// An out of line virtual method to provide a home for the class vtable.
-void raw_stdout_ostream::handle() {}
-void raw_stderr_ostream::handle() {}
-
/// outs() - This returns a reference to a raw_ostream for standard output.
/// Use it like: outs() << "foo" << "bar";
raw_ostream &llvm::outs() {
- static raw_stdout_ostream S;
+ // Set buffer settings to model stdout behavior.
+ static raw_fd_ostream S(STDOUT_FILENO, false);
return S;
}
/// errs() - This returns a reference to a raw_ostream for standard error.
/// Use it like: errs() << "foo" << "bar";
raw_ostream &llvm::errs() {
- static raw_stderr_ostream S;
+ // Set standard error to be unbuffered by default.
+ static raw_fd_ostream S(STDERR_FILENO, false, true);
return S;
}
OpenPOWER on IntegriCloud