From: Tobias Grosser Date: Mon, 30 Nov 2009 13:34:51 +0000 (+0000) Subject: Fix last DOTGraphTraits problems in CompilationGraph. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ab01069fcdb1fed655cf0ca851400a104e4b46d1;p=oota-llvm.git Fix last DOTGraphTraits problems in CompilationGraph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90136 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index b4fe80caff6..c5adc5000db 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/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/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index 5781cdad906..3e6e050d686 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/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&)