[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h DSNode.h
Bill Wendling
isanbard at gmail.com
Tue Nov 28 15:31:59 PST 2006
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.110 -> 1.111
DSNode.h updated: 1.58 -> 1.59
---
Log message:
Support for llvm_ostreams.
---
Diffs of the changes: (+7 -1)
DSGraph.h | 5 ++++-
DSNode.h | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.110 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.111
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.110 Wed Feb 22 10:23:42 2006
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Tue Nov 28 17:31:42 2006
@@ -378,9 +378,12 @@
/// print - Print a dot graph to the specified ostream...
///
+ void print(llvm_ostream &O) const {
+ if (O.stream()) print(*O.stream());
+ }
void print(std::ostream &O) const;
- /// dump - call print(std::cerr), for use from the debugger...
+ /// dump - call print(llvm_cerr), for use from the debugger...
///
void dump() const;
Index: llvm/include/llvm/Analysis/DataStructure/DSNode.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSNode.h:1.58 llvm/include/llvm/Analysis/DataStructure/DSNode.h:1.59
--- llvm/include/llvm/Analysis/DataStructure/DSNode.h:1.58 Fri May 19 14:07:54 2006
+++ llvm/include/llvm/Analysis/DataStructure/DSNode.h Tue Nov 28 17:31:42 2006
@@ -362,6 +362,9 @@
///
void forwardNode(DSNode *To, unsigned Offset);
+ void print(llvm_ostream &O, const DSGraph *G) const {
+ if (O.stream()) print(*O.stream(), G);
+ }
void print(std::ostream &O, const DSGraph *G) const;
void dump() const;
More information about the llvm-commits
mailing list