blob: 122955ff4eb7ffd97a54a3deda0500dc8d86e3bc [file] [log] [blame]
Bill Wendlinge562ed12006-11-17 09:51:22 +00001//===-- Streams.cpp - Wrappers for iostreams ------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Bill Wendlinge562ed12006-11-17 09:51:22 +00007//
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>
17using namespace llvm;
18
Bill Wendlinge8156192006-12-07 01:30:32 +000019OStream llvm::cout(std::cout);
20OStream llvm::cerr(std::cerr);
21IStream llvm::cin(std::cin);