diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index a987f9f5414..bfd7113fab7 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -66,6 +66,7 @@ public: typedef std::vector::const_iterator allnodes_iterator; allnodes_iterator allnodes_begin() const { return AllNodes.begin(); } allnodes_iterator allnodes_end() const { return AllNodes.end(); } + unsigned allnodes_size() const { return AllNodes.size(); } /// getRoot - Return the root tag of the SelectionDAG. ///