mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Annotate nodes with their addresses if a graph requests it.
This is Jim's feature implemented so that graphs could 'opt-in' and get this behavior. This is currently used by selection dags. llvm-svn: 23576
This commit is contained in:
parent
2a439615b7
commit
9c069d09a5
@ -111,9 +111,14 @@ public:
|
||||
if (!NodeAttributes.empty()) O << NodeAttributes << ",";
|
||||
O << "label=\"{";
|
||||
|
||||
if (!DOTTraits::renderGraphFromBottomUp())
|
||||
if (!DOTTraits::renderGraphFromBottomUp()) {
|
||||
O << DOT::EscapeString(DOTTraits::getNodeLabel(Node, G));
|
||||
|
||||
// If we should include the address of the node in the label, do so now.
|
||||
if (DOTTraits::hasNodeAddressLabel(Node, G))
|
||||
O << "|" << (void*)Node;
|
||||
}
|
||||
|
||||
// Print out the fields of the current node...
|
||||
child_iterator EI = GTraits::child_begin(Node);
|
||||
child_iterator EE = GTraits::child_end(Node);
|
||||
@ -131,9 +136,15 @@ public:
|
||||
O << "}";
|
||||
if (DOTTraits::renderGraphFromBottomUp()) O << "|";
|
||||
}
|
||||
if (DOTTraits::renderGraphFromBottomUp())
|
||||
|
||||
if (DOTTraits::renderGraphFromBottomUp()) {
|
||||
O << DOT::EscapeString(DOTTraits::getNodeLabel(Node, G));
|
||||
|
||||
// If we should include the address of the node in the label, do so now.
|
||||
if (DOTTraits::hasNodeAddressLabel(Node, G))
|
||||
O << "|" << (void*)Node;
|
||||
}
|
||||
|
||||
O << "}\"];\n"; // Finish printing the "node" line
|
||||
|
||||
// Output all of the edges now
|
||||
|
Loading…
Reference in New Issue
Block a user