summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/SCCIteratorTest.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
committerTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
commitf2187ed3210377902124b326957f8721bb58733a (patch)
tree4505affdaf0d52c11907f4132beb6b21aae6a92c /llvm/unittests/ADT/SCCIteratorTest.cpp
parentb29ec1e040fb798418eee8a14e13f9df7c372658 (diff)
downloadbcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.tar.gz
bcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.zip
[GraphTraits] Replace all NodeType usage with NodeRef
This should finish the GraphTraits migration. Differential Revision: http://reviews.llvm.org/D23730 llvm-svn: 279475
Diffstat (limited to 'llvm/unittests/ADT/SCCIteratorTest.cpp')
-rw-r--r--llvm/unittests/ADT/SCCIteratorTest.cpp11
1 files changed, 6 insertions, 5 deletions
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 <unsigned N>
struct GraphTraits<Graph<N> > {
- typedef typename Graph<N>::NodeType NodeType;
typedef typename Graph<N>::NodeType *NodeRef;
typedef typename Graph<N>::ChildIterator ChildIteratorType;
- static inline NodeType *getEntryNode(const Graph<N> &G) { return G.AccessNode(0); }
- static inline ChildIteratorType child_begin(NodeType *Node) {
- return Graph<N>::child_begin(Node);
+ static inline NodeRef getEntryNode(const Graph<N> &G) {
+ return G.AccessNode(0);
+ }
+ static inline ChildIteratorType child_begin(NodeRef Node) {
+ return Graph<N>::child_begin(Node);
}
- static inline ChildIteratorType child_end(NodeType *Node) {
+ static inline ChildIteratorType child_end(NodeRef Node) {
return Graph<N>::child_end(Node);
}
};
OpenPOWER on IntegriCloud