[llvm-commits] [llvm] r102728 - /llvm/trunk/include/llvm/Support/GraphWriter.h
Dan Gohman
gohman at apple.com
Fri Apr 30 11:27:57 PDT 2010
Author: djg
Date: Fri Apr 30 13:27:57 2010
New Revision: 102728
URL: http://llvm.org/viewvc/llvm-project?rev=102728&view=rev
Log:
Properly escape edge source and destination labels.
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=102728&r1=102727&r2=102728&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GraphWriter.h (original)
+++ llvm/trunk/include/llvm/Support/GraphWriter.h Fri Apr 30 13:27:57 2010
@@ -174,7 +174,8 @@
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 @@
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 << "}}";
}
More information about the llvm-commits
mailing list