Escape graph edge labels.
authorDan Gohman <gohman@apple.com>
Tue, 1 Mar 2011 22:12:24 +0000 (22:12 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 1 Mar 2011 22:12:24 +0000 (22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126788 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/GraphWriter.h

index ec64f73fe8ebd0a0c36c3b9faeae0909f4f0e1ae..a5165f44d54e2c8e682bafcf5a5637cb2d936ef2 100644 (file)
@@ -78,7 +78,7 @@ class GraphWriter {
       if (i)
         O << "|";
 
-      O << "<s" << i << ">" << label;
+      O << "<s" << i << ">" << DOT::EscapeString(label);
     }
 
     if (EI != EE && hasEdgeSourceLabels)