[llvm-commits] CVS: llvm/lib/Support/Streams.cpp
Bill Wendling
isanbard at gmail.com
Fri Nov 17 01:51:36 PST 2006
Changes in directory llvm/lib/Support:
Streams.cpp added (r1.1)
---
Log message:
Added wrappers for the std::cerr/std::cout objects. The wrappers will
soon replace all uses of those objects.
---
Diffs of the changes: (+21 -0)
Streams.cpp | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+)
Index: llvm/lib/Support/Streams.cpp
diff -c /dev/null llvm/lib/Support/Streams.cpp:1.1
*** /dev/null Fri Nov 17 03:51:32 2006
--- llvm/lib/Support/Streams.cpp Fri Nov 17 03:51:22 2006
***************
*** 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);
More information about the llvm-commits
mailing list