X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firhooks.c;h=5b51efd45eb9372ff4c8e6288945fcd7ee372653;hb=1852308bd33b77378f0fca9e5347d4f9082464c4;hp=fdc922808faf291f260be8843c077b76bf6160c2;hpb=b04699046ef5719331e05f5f9bf41d44d3ea7a4e;p=libfirm diff --git a/ir/ir/irhooks.c b/ir/ir/irhooks.c index fdc922808..5b51efd45 100644 --- a/ir/ir/irhooks.c +++ b/ir/ir/irhooks.c @@ -23,9 +23,7 @@ * @author Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "irhooks.h" @@ -59,10 +57,3 @@ void unregister_hook(hook_type_t hook, hook_entry_t *entry) { entry->next = NULL; } } - -int firm_init_hooks(void) { - /* this strange code assures that both functions are available - in a shared library even if none of them is called. - Meanwhile not needed anymore but ... */ - return (int)register_hook + (int)unregister_hook; -}