diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index adfe5ec6f2e..3ff3fa8ffe1 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 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::addCustomGraphFeatures(G, W); + DOTGraphTraits::addCustomGraphFeatures(G, *this); // Output the end of the graph - W.writeFooter(); + writeFooter(); } void writeHeader(const std::string &Title) {