diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-10 19:55:54 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-10 19:55:54 +0000 |
commit | 358f5ac9721f02eec68145bba012322ebc78d58c (patch) | |
tree | 4e4f8ffd578fd6fa221ef9174458b9f283a04b1a | |
parent | 1bf85e569bc2ef9bc0b138592be8c6ad7b81393f (diff) | |
download | external_llvm-358f5ac9721f02eec68145bba012322ebc78d58c.zip external_llvm-358f5ac9721f02eec68145bba012322ebc78d58c.tar.gz external_llvm-358f5ac9721f02eec68145bba012322ebc78d58c.tar.bz2 |
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
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 14a70cb..dab09e5 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"; |