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 | 43f97716c7435a70ecee9eeeb822b708918ded3b (patch) | |
tree | 8de3edcdc2d8641c7cfdccce7ab8fc4b710f8097 | |
parent | 49eff5fbc0c5e5c34f042ef27753c04b47f174f4 (diff) | |
download | bcm5719-llvm-43f97716c7435a70ecee9eeeb822b708918ded3b.tar.gz bcm5719-llvm-43f97716c7435a70ecee9eeeb822b708918ded3b.zip |
Escape the graph name. This unbreaks -view-cfg.
llvm-svn: 53417
-rw-r--r-- | llvm/include/llvm/Support/GraphWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h index 14a70cb1892..dab09e57c6a 100644 --- a/llvm/include/llvm/Support/GraphWriter.h +++ b/llvm/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"; |