Skip to content
Snippets Groups Projects
Commit 5c63f7b6 authored by Chris Lattner's avatar Chris Lattner
Browse files

add a helper method.

llvm-svn: 82376
parent 131dca9c
No related branches found
No related tags found
No related merge requests found
...@@ -268,6 +268,13 @@ namespace llvm { ...@@ -268,6 +268,13 @@ namespace llvm {
/// @name Registry Access /// @name Registry Access
/// @{ /// @{
static unsigned getNumTargets() {
unsigned Res = 0;
for (iterator I = begin(), E = end(); I != E; ++I)
++Res;
return Res;
}
static iterator begin(); static iterator begin();
static iterator end() { return iterator(); } static iterator end() { return iterator(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment