aboutsummaryrefslogtreecommitdiff
path: root/include/Support/GraphWriter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-31 22:16:41 +0000
committerChris Lattner <sabre@nondot.org>2003-10-31 22:16:41 +0000
commit1926f69c53e4581ad10ba2e12eb2bbd21e4c06ef (patch)
tree28b277f09551a42b7a8101281dfc3d427dd9cc7b /include/Support/GraphWriter.h
parentbb9ae1512e1179681c1774f2f1a9d8c042941a56 (diff)
Escape "'s, which are frequent visitors to C++ types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/GraphWriter.h')
-rw-r--r--include/Support/GraphWriter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/Support/GraphWriter.h b/include/Support/GraphWriter.h
index 229284fa8e..2cb8fcc985 100644
--- a/include/Support/GraphWriter.h
+++ b/include/Support/GraphWriter.h
@@ -48,6 +48,7 @@ namespace DOT { // Private functions...
break; // don't disturb \l
case '{': case '}':
case '<': case '>':
+ case '"':
Str.insert(Str.begin()+i, '\\'); // Escape character...
++i; // don't infinite loop
break;