summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Streams.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-17 09:51:22 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-17 09:51:22 +0000
commit33158694981ba2ac541909fde5d3862f3c53c377 (patch)
treed95a506ad1fbcb64d4ac68729d3b9c2160e1b484 /llvm/lib/Support/Streams.cpp
parent9b04e3b8751d272f533967d4ff272c7e2b33767b (diff)
downloadbcm5719-llvm-33158694981ba2ac541909fde5d3862f3c53c377.tar.gz
bcm5719-llvm-33158694981ba2ac541909fde5d3862f3c53c377.zip
Added wrappers for the std::cerr/std::cout objects. The wrappers will
soon replace all uses of those objects. llvm-svn: 31817
Diffstat (limited to 'llvm/lib/Support/Streams.cpp')
-rw-r--r--llvm/lib/Support/Streams.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/Support/Streams.cpp b/llvm/lib/Support/Streams.cpp
new file mode 100644
index 00000000000..9ca7590e37c
--- /dev/null
+++ b/llvm/lib/Support/Streams.cpp
@@ -0,0 +1,21 @@
+//===-- Streams.cpp - Wrappers for iostreams ------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Bill Wendling and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements a wrapper for the std::cout and std::cerr I/O streams.
+// It prevents the need to include <iostream> to each file just to get I/O.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Support/Streams.h"
+#include <iostream>
+using namespace llvm;
+
+llvm_ostream llvm::llvm_null;
+llvm_ostream llvm::llvm_cout(std::cout);
+llvm_ostream llvm::llvm_cerr(std::cerr);
OpenPOWER on IntegriCloud