From 3307244ce90bc11f939623f6d367f30db06bddf2 Mon Sep 17 00:00:00 2001
From: Bill Wendling
Old Way | @@ -520,8 +520,10 @@ library. There are two problems with this:#include "llvm/Support/Streams.h" |
||
---|---|---|---|
DEBUG(std::cerr << ...); |
- DOUT << ...; |
+ DEBUG(std::cerr << ...); +DEBUG(dump(std::cerr)); |
+ DOUT << ...; +dump(DOUT); |
std::cerr << "Hello world\n"; |
@@ -535,6 +537,12 @@ library. There are two problems with this:
std::cin >> Var; |
llvm::cin >> Var; |
|
N/A | +llvm::cnull >> Var;+
|
+ ||
std::ostream |
llvm::OStream |
@@ -552,9 +560,14 @@ library. There are two problems with this:
// ...
print(std::cerr);
void print(std::ostream &Out); +void print(std::ostream *Out) { if (Out) print(*Out) } // ... -print(*llvm::cerr.stream()); |
-