Change allowsUnalignedMemoryAccesses to take type argument since some targets
[llvm/avr.git] / lib / Support / Streams.cpp
blobcf6cfeb7fd0443c6c896efce694957e588f9cd90
1 //===-- Streams.cpp - Wrappers for iostreams ------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // 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.
13 //===----------------------------------------------------------------------===//
15 #include "llvm/Support/Streams.h"
16 #include <iostream>
17 using namespace llvm;
19 OStream llvm::cout(std::cout);
20 OStream llvm::cerr(std::cerr);
21 IStream llvm::cin(std::cin);
23 namespace llvm {
25 /// FlushStream - Function called by BaseStream to flush an ostream.
26 void FlushStream(std::ostream &S) {
27 S << std::flush;
30 } // end anonymous namespace