Add an allnodes_size method.
authorDan Gohman <gohman@apple.com>
Fri, 20 Jun 2008 16:03:16 +0000 (16:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Jun 2008 16:03:16 +0000 (16:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52541 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index c052aad1487bc2827657d5ca9be279e71ebdc036..3bdedb7809dd9b19dc46d3aae3fd55c6d7f3a34d 100644 (file)
@@ -104,6 +104,7 @@ public:
   typedef ilist<SDNode>::iterator allnodes_iterator;
   allnodes_iterator allnodes_begin() { return AllNodes.begin(); }
   allnodes_iterator allnodes_end() { return AllNodes.end(); }
+  ilist<SDNode>::size_type allnodes_size() const { return AllNodes.size(); }
   
   /// getRoot - Return the root tag of the SelectionDAG.
   ///