diff options
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/DOTGraphTraits.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/DOTGraphTraits.h b/include/llvm/Support/DOTGraphTraits.h index 9300ea7a8a..62eac0cea9 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. diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 6bf43d29c7..b4e6d845e6 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -109,7 +109,7 @@ public: } 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 << ","; |