diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-30 18:27:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-30 18:27:57 +0000 |
commit | 5b296e307f71bcaf3d31eff4a04ba5d2016eb628 (patch) | |
tree | de9ed1746ed204323ca1e305c04259966536d437 /include/llvm | |
parent | 01baea3c2c078285f745357f9b1d1183c8895445 (diff) | |
download | external_llvm-5b296e307f71bcaf3d31eff4a04ba5d2016eb628.zip external_llvm-5b296e307f71bcaf3d31eff4a04ba5d2016eb628.tar.gz external_llvm-5b296e307f71bcaf3d31eff4a04ba5d2016eb628.tar.bz2 |
Properly escape edge source and destination labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 28fa92f..13e6682 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -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 << "}}"; } |