mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +00:00
The graph name really does matter for configurations that use gv.
llvm-svn: 53259
This commit is contained in:
parent
caf8cb40e8
commit
e2169bec88
@ -82,15 +82,18 @@ public:
|
||||
GraphWriter(std::ostream &o, const GraphType &g) : O(o), G(g) {}
|
||||
|
||||
void writeHeader(const std::string &Name) {
|
||||
if (Name.empty())
|
||||
O << "digraph foo {\n"; // Graph name doesn't matter
|
||||
else
|
||||
std::string GraphName = DOTTraits::getGraphName(G);
|
||||
|
||||
if (!Name.empty())
|
||||
O << "digraph " << Name << " {\n";
|
||||
else if (!GraphName.empty())
|
||||
O << "digraph " << GraphName << " {\n";
|
||||
else
|
||||
O << "digraph unnamed {\n";
|
||||
|
||||
if (DOTTraits::renderGraphFromBottomUp())
|
||||
O << "\trankdir=\"BT\";\n";
|
||||
|
||||
std::string GraphName = DOTTraits::getGraphName(G);
|
||||
if (!GraphName.empty())
|
||||
O << "\tlabel=\"" << DOT::EscapeString(GraphName) << "\";\n";
|
||||
O << DOTTraits::getGraphProperties(G);
|
||||
|
Loading…
Reference in New Issue
Block a user