mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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
This commit is contained in:
@ -87,7 +87,7 @@ public:
|
|||||||
if (!Name.empty())
|
if (!Name.empty())
|
||||||
O << "digraph " << Name << " {\n";
|
O << "digraph " << Name << " {\n";
|
||||||
else if (!GraphName.empty())
|
else if (!GraphName.empty())
|
||||||
O << "digraph " << GraphName << " {\n";
|
O << "digraph \"" << DOT::EscapeString(GraphName) << "\" {\n";
|
||||||
else
|
else
|
||||||
O << "digraph unnamed {\n";
|
O << "digraph unnamed {\n";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user