summaryrefslogtreecommitdiff
path: root/include/llvm/Support/GraphWriter.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-03-01 22:12:24 +0000
committerDan Gohman <gohman@apple.com>2011-03-01 22:12:24 +0000
commit7ee42e6a28784dcf6a6fa25c776362044eea6a91 (patch)
tree8cebd6d9e59c7e94663713a9b0942f3d76d7ab45 /include/llvm/Support/GraphWriter.h
parentd50f3f8731821bb9177bcaa44a0c18f7a26b3d80 (diff)
downloadllvm-7ee42e6a28784dcf6a6fa25c776362044eea6a91.tar.gz
llvm-7ee42e6a28784dcf6a6fa25c776362044eea6a91.tar.bz2
llvm-7ee42e6a28784dcf6a6fa25c776362044eea6a91.tar.xz
Escape graph edge labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r--include/llvm/Support/GraphWriter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h
index ec64f73fe8..a5165f44d5 100644
--- a/include/llvm/Support/GraphWriter.h
+++ b/include/llvm/Support/GraphWriter.h
@@ -78,7 +78,7 @@ class GraphWriter {
if (i)
O << "|";
- O << "<s" << i << ">" << label;
+ O << "<s" << i << ">" << DOT::EscapeString(label);
}
if (EI != EE && hasEdgeSourceLabels)