From 358f5ac9721f02eec68145bba012322ebc78d58c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 10 Jul 2008 19:55:54 +0000 Subject: [PATCH] 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 --- include/llvm/Support/GraphWriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 14a70cb1892..dab09e57c6a 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";