[llvm-commits] [llvm] r114838 - /llvm/trunk/include/llvm/Support/GraphWriter.h
Dan Gohman
gohman at apple.com
Mon Sep 27 09:54:13 PDT 2010
Author: djg
Date: Mon Sep 27 11:54:13 2010
New Revision: 114838
URL: http://llvm.org/viewvc/llvm-project?rev=114838&view=rev
Log:
Don't construct a redundant GraphWriter object.
Modified:
llvm/trunk/include/llvm/Support/GraphWriter.h
Modified: llvm/trunk/include/llvm/Support/GraphWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GraphWriter.h?rev=114838&r1=114837&r2=114838&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GraphWriter.h (original)
+++ llvm/trunk/include/llvm/Support/GraphWriter.h Mon Sep 27 11:54:13 2010
@@ -94,20 +94,17 @@
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) {
More information about the llvm-commits
mailing list