From 9caf3801cad960277158f1985509abff375d5ae6 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 30 Nov 2009 13:34:51 +0000 Subject: [PATCH] Fix last DOTGraphTraits problems in CompilationGraph. llvm-svn: 90136 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 +- llvm/lib/CompilerDriver/CompilationGraph.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index b4fe80caff64..c5adc5000dba 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -132,7 +132,7 @@ namespace llvm { std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, const SelectionDAG *G) { - DOTGraphTraits::getSimpleNodeLabel (Node, G); + return DOTGraphTraits::getSimpleNodeLabel (Node, G); } diff --git a/llvm/lib/CompilerDriver/CompilationGraph.cpp b/llvm/lib/CompilerDriver/CompilationGraph.cpp index 5781cdad9062..3e6e050d6862 100644 --- a/llvm/lib/CompilerDriver/CompilationGraph.cpp +++ b/llvm/lib/CompilerDriver/CompilationGraph.cpp @@ -471,6 +471,7 @@ namespace llvm { struct DOTGraphTraits : public DefaultDOTGraphTraits { + DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {} template static std::string getNodeLabel(const Node* N, const GraphType&)