From f2187ed3210377902124b326957f8721bb58733a Mon Sep 17 00:00:00 2001 From: Tim Shen Date: Mon, 22 Aug 2016 21:09:30 +0000 Subject: [GraphTraits] Replace all NodeType usage with NodeRef This should finish the GraphTraits migration. Differential Revision: http://reviews.llvm.org/D23730 llvm-svn: 279475 --- llvm/unittests/ADT/SCCIteratorTest.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'llvm/unittests/ADT/SCCIteratorTest.cpp') diff --git a/llvm/unittests/ADT/SCCIteratorTest.cpp b/llvm/unittests/ADT/SCCIteratorTest.cpp index 597661fd8cc..62eb0e637f6 100644 --- a/llvm/unittests/ADT/SCCIteratorTest.cpp +++ b/llvm/unittests/ADT/SCCIteratorTest.cpp @@ -229,15 +229,16 @@ public: template struct GraphTraits > { - typedef typename Graph::NodeType NodeType; typedef typename Graph::NodeType *NodeRef; typedef typename Graph::ChildIterator ChildIteratorType; - static inline NodeType *getEntryNode(const Graph &G) { return G.AccessNode(0); } - static inline ChildIteratorType child_begin(NodeType *Node) { - return Graph::child_begin(Node); + static inline NodeRef getEntryNode(const Graph &G) { + return G.AccessNode(0); + } + static inline ChildIteratorType child_begin(NodeRef Node) { + return Graph::child_begin(Node); } - static inline ChildIteratorType child_end(NodeType *Node) { + static inline ChildIteratorType child_end(NodeRef Node) { return Graph::child_end(Node); } }; -- cgit v1.2.3