diff options
author | Dan Gohman <gohman@apple.com> | 2010-09-27 16:54:13 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-09-27 16:54:13 +0000 |
commit | 68fe97073215f2b9ed014a68f919da7a99ec67a8 (patch) | |
tree | b4b0c80b9e124fe1942fc2ed6747562c54b876fd | |
parent | 06ccde5f40a6ad701a3fabec109efc91cd480dd8 (diff) | |
download | bcm5719-llvm-68fe97073215f2b9ed014a68f919da7a99ec67a8.tar.gz bcm5719-llvm-68fe97073215f2b9ed014a68f919da7a99ec67a8.zip |
Don't construct a redundant GraphWriter object.
llvm-svn: 114838
-rw-r--r-- | llvm/include/llvm/Support/GraphWriter.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h index adfe5ec6f2e..3ff3fa8ffe1 100644 --- a/llvm/include/llvm/Support/GraphWriter.h +++ b/llvm/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) { |