LLVM API Documentation
00001 //===-- Streams.cpp - Wrappers for iostreams ------------------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file implements a wrapper for the std::cout and std::cerr I/O streams. 00011 // It prevents the need to include <iostream> to each file just to get I/O. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #include "llvm/Support/Streams.h" 00016 #include <iostream> 00017 using namespace llvm; 00018 00019 OStream llvm::cout(std::cout); 00020 OStream llvm::cerr(std::cerr); 00021 IStream llvm::cin(std::cin); 00022 00023 namespace llvm { 00024 00025 /// FlushStream - Function called by BaseStream to flush an ostream. 00026 void FlushStream(std::ostream &S) { 00027 S << std::flush; 00028 } 00029 00030 } // end anonymous namespace
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.