summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-10 19:55:54 +0000
committerDan Gohman <gohman@apple.com>2008-07-10 19:55:54 +0000
commit358f5ac9721f02eec68145bba012322ebc78d58c (patch)
tree4e4f8ffd578fd6fa221ef9174458b9f283a04b1a /include
parent1bf85e569bc2ef9bc0b138592be8c6ad7b81393f (diff)
downloadllvm-358f5ac9721f02eec68145bba012322ebc78d58c.tar.gz
llvm-358f5ac9721f02eec68145bba012322ebc78d58c.tar.bz2
llvm-358f5ac9721f02eec68145bba012322ebc78d58c.tar.xz
Escape the graph name. This unbreaks -view-cfg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 14a70cb189..dab09e57c6 100644
--- a/include/llvm/Support/GraphWriter.h
+++ b/include/llvm/Support/GraphWriter.h
@@ -87,7 +87,7 @@ public:
if (!Name.empty())
O << "digraph " << Name << " {\n";
else if (!GraphName.empty())
- O << "digraph " << GraphName << " {\n";
+ O << "digraph \"" << DOT::EscapeString(GraphName) << "\" {\n";
else
O << "digraph unnamed {\n";