mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-16 02:09:14 +00:00
Don't construct a redundant GraphWriter object.
llvm-svn: 114838
This commit is contained in:
parent
96a88043ca
commit
830a560eef
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user