From e7c0293f1f18a32efdc867c4bb5efe3ea1338dbb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Oct 2002 14:55:44 +0000 Subject: [PATCH] Don't emit braces around something without outgoing edges llvm-svn: 4225 --- llvm/include/Support/GraphWriter.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/include/Support/GraphWriter.h b/llvm/include/Support/GraphWriter.h index ada31b280317..d7c928bf0671 100644 --- a/llvm/include/Support/GraphWriter.h +++ b/llvm/include/Support/GraphWriter.h @@ -141,7 +141,9 @@ public: 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 @@ public: if (i) O << "|"; O << ""; } - O << "}"; + O << "}}"; } - O << "}\"];\n"; + O << "\"];\n"; } /// emitEdge - Output an edge from a simple node into the graph...