Typo fixed.
[libfirm] / ir / ir / irnode_t.h
index 5c4a2cf..a84672b 100644 (file)
 # ifndef _IRNODE_T_H_
 # define _IRNODE_T_H_
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 # include "irnode.h"
-# include "xprintf.h"
 # include "irop_t.h"
 # include "firm_common_t.h"
 # include "irdom_t.h" /* For size of struct dom_info. */
@@ -117,6 +120,11 @@ typedef struct {
   ir_node * call;            /**< associated Call-operation */
 } callbegin_attr;
 
+/** Cast attributes */
+typedef struct {
+  type *totype;
+} cast_attr;
+
 /** Some irnodes just have one attribute, these are stored here,
    some have more. Their name is 'irnodename_attr' */
 typedef union {
@@ -130,6 +138,7 @@ typedef union {
   alloc_attr     a;     /**< For Alloc. */
   io_attr       io;    /**< For InstOf */
   type          *f;     /**< For Free. */
+  cast_attr      cast;  /**< For Cast. */
   int            phi0_pos;  /**< For Phi. Used to remember the value defined by
                               this Phi node.  Needed when the Phi is completed
                               to call get_r_internal_value to find the
@@ -180,13 +189,9 @@ void
 copy_attrs (ir_node *old, ir_node *new);
 
 
-/** Print IR-Nodes with attributes
-    @todo brauchen wir dienoch? dann fliegt ev. das xprint raus? */
-int ir_node_print (XP_PAR1, const xprintf_info *, XP_PARN);
-
 /** Returns the array with the ins.  The content of the array may not be
    changed.  */
-ir_node     **get_irn_in            (ir_node *node);
+ir_node     **get_irn_in            (const ir_node *node);
 
 /*@{*/
 /** access attributes directly */