[llvm-commits] CVS: llvm/include/Support/GraphWriter.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 18 09:56:00 PDT 2002
Changes in directory llvm/include/Support:
GraphWriter.h updated: 1.9 -> 1.10
---
Log message:
Don't emit braces around something without outgoing edges
---
Diffs of the changes:
Index: llvm/include/Support/GraphWriter.h
diff -u llvm/include/Support/GraphWriter.h:1.9 llvm/include/Support/GraphWriter.h:1.10
--- llvm/include/Support/GraphWriter.h:1.9 Wed Oct 16 19:59:59 2002
+++ llvm/include/Support/GraphWriter.h Fri Oct 18 09:55:44 2002
@@ -141,7 +141,9 @@
O << "\tNode" << ID << "[ ";
if (!Attr.empty())
O << Attr << ",";
- O << " label =\"{" << DOT::EscapeString(Label);
+ O << " label =\"";
+ if (NumEdgeSources) O << "{";
+ O << DOT::EscapeString(Label);
if (NumEdgeSources) {
O << "|{";
@@ -149,9 +151,9 @@
if (i) O << "|";
O << "<g" << i << ">";
}
- O << "}";
+ O << "}}";
}
- O << "}\"];\n";
+ O << "\"];\n";
}
/// emitEdge - Output an edge from a simple node into the graph...
More information about the llvm-commits
mailing list