Fix last DOTGraphTraits problems in CompilationGraph.
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 30 Nov 2009 13:34:51 +0000 (13:34 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Mon, 30 Nov 2009 13:34:51 +0000 (13:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90136 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
lib/CompilerDriver/CompilationGraph.cpp

index b4fe80caff646aff2a8d6098f7f210ebc30c0d91..c5adc5000dbacc011ac5bd5094d5e7fd0dc9b14c 100644 (file)
@@ -132,7 +132,7 @@ namespace llvm {
 
 std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
                                                         const SelectionDAG *G) {
-  DOTGraphTraits<SelectionDAG*>::getSimpleNodeLabel (Node, G);
+  return DOTGraphTraits<SelectionDAG*>::getSimpleNodeLabel (Node, G);
 }
 
 
index 5781cdad9062e1f3a4550e3addbd7239c83aab23..3e6e050d6862874af63cfc6ce754a3a31109a0e6 100644 (file)
@@ -471,6 +471,7 @@ namespace llvm {
   struct DOTGraphTraits<llvmc::CompilationGraph*>
     : public DefaultDOTGraphTraits
   {
+    DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
 
     template<typename GraphType>
     static std::string getNodeLabel(const Node* N, const GraphType&)