[llvm-commits] [llvm] r53417 - /llvm/trunk/include/llvm/Support/GraphWriter.h
Dan Gohman
gohman at apple.com
Thu Jul 10 12:55:54 PDT 2008
Author: djg
Date: Thu Jul 10 14:55:54 2008
New Revision: 53417
URL: http://llvm.org/viewvc/llvm-project?rev=53417&view=rev
Log:
Escape the graph name. This unbreaks -view-cfg.
Modified:
llvm/trunk/include/llvm/Support/GraphWriter.h
Modified: llvm/trunk/include/llvm/Support/GraphWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GraphWriter.h?rev=53417&r1=53416&r2=53417&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GraphWriter.h (original)
+++ llvm/trunk/include/llvm/Support/GraphWriter.h Thu Jul 10 14:55:54 2008
@@ -87,7 +87,7 @@
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";
More information about the llvm-commits
mailing list