Adding a collector name attribute to Function in the IR. These
[oota-llvm.git] / include / llvm / Support / GraphWriter.h
index 08bc861332796272f309694e079d19ec318540cb..85cf71805fd69fa8e905dff2bc9d7df56e47e046 100644 (file)
@@ -101,7 +101,11 @@ public:
     // Loop over the graph, printing it out...
     for (node_iterator I = GTraits::nodes_begin(G), E = GTraits::nodes_end(G);
          I != E; ++I)
-      writeNode(&*I);
+      writeNode(*I);
+  }
+  
+  void writeNode(NodeType& Node) {
+    writeNode(&Node);
   }
 
   void writeNode(NodeType *const *Node) {