Added wrappers for the std::cerr/std::cout objects. The wrappers will
[oota-llvm.git] / lib / Support / Streams.cpp
1 //===-- Streams.cpp - Wrappers for iostreams ------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Bill Wendling and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements a wrapper for the std::cout and std::cerr I/O streams.
11 // It prevents the need to include <iostream> to each file just to get I/O.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "llvm/Support/Streams.h"
16 #include <iostream>
17 using namespace llvm;
18
19 llvm_ostream llvm::llvm_null;
20 llvm_ostream llvm::llvm_cout(std::cout);
21 llvm_ostream llvm::llvm_cerr(std::cerr);