Escape the graph name. This unbreaks -view-cfg.

llvm-svn: 53417
This commit is contained in:
Dan Gohman 2008-07-10 19:55:54 +00:00
parent 49eff5fbc0
commit 43f97716c7
1 changed files with 1 additions and 1 deletions

View File

@ -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";