diff options
Diffstat (limited to 'include/llvm/Analysis/DataStructure')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 5 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index eb4388b6ad..61853587d7 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -378,9 +378,12 @@ public: /// 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; diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 45937a4106..5eb927b90e 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -362,6 +362,9 @@ public: /// 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; |