From fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 20 Feb 2009 22:51:36 +0000 Subject: Removed trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/GraphWriter.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/llvm/Support/GraphWriter.h') 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 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 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 -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); } -- cgit v1.2.3