From: Michael Beck Date: Tue, 11 Jan 2005 14:29:27 +0000 (+0000) Subject: added a init function X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dcdbf8578b5fd33fa78352486685ecad0fe1b552;p=libfirm added a init function [r4851] --- 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__ */