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