Added itrools, a (currently small) collection of often used helper functions
[libfirm] / ir / common / irtools.c
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irtools.c
4  * Purpose:     Some often needed tool-functions
5  * Author:      Michael Beck
6  * Modified by:
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1999-2005 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12 #ifdef HAVE_CONFIG_H
13 # include "config.h"
14 #endif
15
16 #include <stdlib.h>
17 #include "irnode_t.h"
18 #include "irtools.h"
19
20 /* the famous clear_link implementation. */
21 void firm_clear_link(ir_node *n, void *env) {
22   set_irn_link(n, NULL);
23 }