summaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/DOTGraphTraits.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-02 12:26:53 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-02 12:26:53 +0000
commitec20402c90b605afeedbcf0e3aabe6f8054f23dd (patch)
treea086dcfb664165c0a3ec91d1ed469e56c7f7fcf6 /include/llvm/Support/DOTGraphTraits.h
parent39d78d623a46479822fe8d90c607487cc9ac77e1 (diff)
downloadexternal_llvm-ec20402c90b605afeedbcf0e3aabe6f8054f23dd.zip
external_llvm-ec20402c90b605afeedbcf0e3aabe6f8054f23dd.tar.gz
external_llvm-ec20402c90b605afeedbcf0e3aabe6f8054f23dd.tar.bz2
Add ability to annotate (color) nodes in a viewGraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DOTGraphTraits.h')
-rw-r--r--include/llvm/Support/DOTGraphTraits.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/DOTGraphTraits.h b/include/llvm/Support/DOTGraphTraits.h
index 9300ea7..62eac0c 100644
--- a/include/llvm/Support/DOTGraphTraits.h
+++ b/include/llvm/Support/DOTGraphTraits.h
@@ -60,7 +60,9 @@ struct DefaultDOTGraphTraits {
/// 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.