aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Support/SCCIterator.h5
-rw-r--r--include/llvm/ADT/SCCIterator.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/Support/SCCIterator.h b/include/Support/SCCIterator.h
index e737f7c990..a65994871a 100644
--- a/include/Support/SCCIterator.h
+++ b/include/Support/SCCIterator.h
@@ -215,6 +215,11 @@ TarjanSCC_iterator<T> tarj_begin(T G)
return TarjanSCC_iterator<T>::begin(G);
}
+template <class T>
+TarjanSCC_iterator<T> tarj_end(T G)
+{
+ return TarjanSCC_iterator<T>::end(G);
+}
//===----------------------------------------------------------------------===//
diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h
index e737f7c990..a65994871a 100644
--- a/include/llvm/ADT/SCCIterator.h
+++ b/include/llvm/ADT/SCCIterator.h
@@ -215,6 +215,11 @@ TarjanSCC_iterator<T> tarj_begin(T G)
return TarjanSCC_iterator<T>::begin(G);
}
+template <class T>
+TarjanSCC_iterator<T> tarj_end(T G)
+{
+ return TarjanSCC_iterator<T>::end(G);
+}
//===----------------------------------------------------------------------===//