summaryrefslogtreecommitdiff
path: root/include/llvm/Support/GraphWriter.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:51:36 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:51:36 +0000
commitfe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 (patch)
tree0b78d06b18ccfef4e1aad7bbbf9b7f02fb90eb3c /include/llvm/Support/GraphWriter.h
parentd5ece81cc7a908c30e6786b70a4a9db1dd129a8a (diff)
downloadllvm-fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7.tar.gz
llvm-fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7.tar.bz2
llvm-fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7.tar.xz
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.h18
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);
}