Changes in directory llvm/include/llvm/Support:
DOTGraphTraits.h updated: 1.14 -> 1.15 GraphWriter.h updated: 1.29 -> 1.30 --- Log message: Add ability to annotate (color) nodes in a viewGraph. --- Diffs of the changes: (+4 -2) DOTGraphTraits.h | 4 +++- GraphWriter.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Support/DOTGraphTraits.h diff -u llvm/include/llvm/Support/DOTGraphTraits.h:1.14 llvm/include/llvm/Support/DOTGraphTraits.h:1.15 --- llvm/include/llvm/Support/DOTGraphTraits.h:1.14 Fri Sep 30 19:17:07 2005 +++ llvm/include/llvm/Support/DOTGraphTraits.h Mon Oct 2 07:26:53 2006 @@ -60,7 +60,9 @@ /// If you want to specify custom node attributes, this is the place to do so /// - static std::string getNodeAttributes(const void *Node) { return ""; } + static std::string getNodeAttributes(const void *Node, const void *Graph) { + return ""; + } /// If you want to override the dot attributes printed for a particular edge, /// override this method. Index: llvm/include/llvm/Support/GraphWriter.h diff -u llvm/include/llvm/Support/GraphWriter.h:1.29 llvm/include/llvm/Support/GraphWriter.h:1.30 --- llvm/include/llvm/Support/GraphWriter.h:1.29 Wed Aug 23 15:34:57 2006 +++ llvm/include/llvm/Support/GraphWriter.h Mon Oct 2 07:26:53 2006 @@ -109,7 +109,7 @@ } void writeNode(NodeType *Node) { - std::string NodeAttributes = DOTTraits::getNodeAttributes(Node); + std::string NodeAttributes = DOTTraits::getNodeAttributes(Node, G); O << "\tNode" << reinterpret_cast<const void*>(Node) << " [shape=record,"; if (!NodeAttributes.empty()) O << NodeAttributes << ","; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits