added a init function
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Jan 2005 14:29:27 +0000 (14:29 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Jan 2005 14:29:27 +0000 (14:29 +0000)
[r4851]

ir/ir/irhooks.c
ir/ir/irhooks.h

index 0341f7d..3854f00 100644 (file)
@@ -41,3 +41,8 @@ void register_hook(hook_type_t hook, hook_entry_t *entry) {
 void register_hook(hook_type_t hook, hook_entry_t *entry) {}
 
 #endif /* FIRM_ENABLE_HOOKS */
+
+int init_hooks(void)
+{
+  return (int)register_hook;
+}
index 0e1a897..48f7c23 100644 (file)
@@ -174,4 +174,7 @@ extern hook_entry_t *hooks[hook_last];
 #define hook_arch_dep_replace_DivMod_by_const(irn) \
   hook_exec(hook_arch_dep_replace_DivMod_by_const, (ctx, irn))
 
+/* the initializer, move to hooks_t.h some day */
+int init_hooks(void);
+
 #endif /* __IRHOOKS_H__ */