Support for llvm_ostreams.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2006-11-28 23:31:42 +00:00
parent f45148e113
commit d96662360f
6 changed files with 22 additions and 16 deletions

View File

@@ -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;

View File

@@ -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;