mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Properly escape edge source and destination labels.
llvm-svn: 102728
This commit is contained in:
parent
f6e1477a55
commit
a5ef1ab165
@ -174,7 +174,8 @@ public:
|
||||
unsigned i = 0, e = DTraits.numEdgeDestLabels(Node);
|
||||
for (; i != e && i != 64; ++i) {
|
||||
if (i) O << "|";
|
||||
O << "<d" << i << ">" << DTraits.getEdgeDestLabel(Node, i);
|
||||
O << "<d" << i << ">"
|
||||
<< DOT::EscapeString(DTraits.getEdgeDestLabel(Node, i));
|
||||
}
|
||||
|
||||
if (i != e)
|
||||
@ -230,7 +231,7 @@ public:
|
||||
for (unsigned i = 0; i != NumEdgeSources; ++i) {
|
||||
if (i) O << "|";
|
||||
O << "<s" << i << ">";
|
||||
if (EdgeSourceLabels) O << (*EdgeSourceLabels)[i];
|
||||
if (EdgeSourceLabels) O << DOT::EscapeString((*EdgeSourceLabels)[i]);
|
||||
}
|
||||
O << "}}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user