diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:51:36 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:51:36 +0000 |
commit | fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 (patch) | |
tree | 0b78d06b18ccfef4e1aad7bbbf9b7f02fb90eb3c /include/llvm/Support/GraphWriter.h | |
parent | d5ece81cc7a908c30e6786b70a4a9db1dd129a8a (diff) |
Removed trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 15f9527abe..ca28aafa78 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -67,7 +67,7 @@ namespace DOT { // Private functions... } void DisplayGraph(const sys::Path& Filename); - + template<typename GraphType> class GraphWriter { std::ostream &O; @@ -113,7 +113,7 @@ public: I != E; ++I) writeNode(*I); } - + void writeNode(NodeType& Node) { writeNode(&Node); } @@ -271,7 +271,7 @@ std::ostream &WriteGraph(std::ostream &O, const GraphType &G, template<typename GraphType> sys::Path WriteGraph(const GraphType &G, - const std::string& Name, + const std::string& Name, const std::string& Title = "") { std::string ErrMsg; sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); @@ -286,7 +286,7 @@ sys::Path WriteGraph(const GraphType &G, } cerr << "Writing '" << Filename << "'... "; - + std::ofstream O(Filename.c_str()); if (O.good()) { @@ -298,23 +298,23 @@ sys::Path WriteGraph(const GraphType &G, cerr << "error opening file for writing!\n"; Filename.clear(); } - + return Filename; } - + /// ViewGraph - Emit a dot graph, run 'dot', run gv on the postscript file, /// then cleanup. For use from the debugger. /// template<typename GraphType> -void ViewGraph(const GraphType& G, - const std::string& Name, +void ViewGraph(const GraphType& G, + const std::string& Name, const std::string& Title = "") { sys::Path Filename = WriteGraph(G, Name, Title); if (Filename.isEmpty()) { return; } - + DisplayGraph(Filename); } |