From dcdbf8578b5fd33fa78352486685ecad0fe1b552 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 11 Jan 2005 14:29:27 +0000 Subject: [PATCH] added a init function [r4851] --- ir/ir/irhooks.c | 5 +++++ ir/ir/irhooks.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ir/ir/irhooks.c b/ir/ir/irhooks.c index 0341f7de8..3854f0049 100644 --- a/ir/ir/irhooks.c +++ b/ir/ir/irhooks.c @@ -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; +} diff --git a/ir/ir/irhooks.h b/ir/ir/irhooks.h index 0e1a89742..48f7c23e2 100644 --- a/ir/ir/irhooks.h +++ b/ir/ir/irhooks.h @@ -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__ */ -- 2.20.1