summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Registry.h')
-rw-r--r--include/llvm/Support/Registry.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/Support/Registry.h b/include/llvm/Support/Registry.h
index 6f11ef1387..7488773bb4 100644
--- a/include/llvm/Support/Registry.h
+++ b/include/llvm/Support/Registry.h
@@ -67,7 +67,10 @@ namespace llvm {
private:
Registry(); // Do not implement.
- static void Announce(node *);
+ static void Announce(const entry &E) {
+ for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next)
+ Cur->registered(E);
+ }
friend class node;
static node *Head, *Tail;
@@ -229,13 +232,6 @@ namespace llvm {
}
};
-
- private:
- static void Announce(const entry &E) {
- for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next)
- Cur->registered(E);
- }
-
};
}