aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/GraphWriter.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-27 16:54:13 +0000
committerDan Gohman <gohman@apple.com>2010-09-27 16:54:13 +0000
commitd73b908f263d538f380e7fbee508d4e9a1a71791 (patch)
treeef6fe1fbc6abaa0210d9c57b17bdaf7925fb51bd /include/llvm/Support/GraphWriter.h
parentf7e2ca9e161140f658a2ae65ad67e508b703ac8c (diff)
Don't construct a redundant GraphWriter object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r--include/llvm/Support/GraphWriter.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h
index adfe5ec6f2..3ff3fa8ffe 100644
--- a/include/llvm/Support/GraphWriter.h
+++ b/include/llvm/Support/GraphWriter.h
@@ -94,20 +94,17 @@ public:
void writeGraph(bool ShortNames = false,
const std::string &Title = "") {
- // Start the graph emission process...
- GraphWriter<GraphType> W(O, G, ShortNames);
-
// Output the header for the graph...
- W.writeHeader(Title);
+ writeHeader(Title);
// Emit all of the nodes in the graph...
- W.writeNodes();
+ writeNodes();
// Output any customizations on the graph
- DOTGraphTraits<GraphType>::addCustomGraphFeatures(G, W);
+ DOTGraphTraits<GraphType>::addCustomGraphFeatures(G, *this);
// Output the end of the graph
- W.writeFooter();
+ writeFooter();
}
void writeHeader(const std::string &Title) {