Fixed combo by fixing an old artefact from the older libFirm Cmp nodes.
[libfirm] / ir / tv / tv_t.h
index 8f6fa3b..47621b8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -81,49 +81,49 @@ void finish_tarval(void);
  * @sa
  *   irmode.h for predefined modes
  */
-struct tarval {
-       firm_kind kind;         /**< must be k_tarval */
-       ir_mode   *mode;        /**< the mode of the stored value */
-       const void *value;      /**< the value stored in an internal way... */
-       unsigned int length;    /**< the length of the stored value */
+struct ir_tarval {
+       firm_kind  kind;    /**< must be k_tarval */
+       ir_mode    *mode;   /**< the mode of the stored value */
+       const void *value;  /**< the value stored in an internal way... */
+       size_t     length;  /**< the length of the stored value */
 };
 
 /* inline functions */
 /*
  * Access routines for tarval fields ========================================
  */
-static inline ir_mode *_get_tarval_mode(const tarval *tv)
+static inline ir_mode *_get_tarval_mode(const ir_tarval *tv)
 {
        assert(tv);
        return tv->mode;
 }
 
-static inline tarval *_get_tarval_bad(void)
+static inline ir_tarval *_get_tarval_bad(void)
 {
        return tarval_bad;
 }
 
-static inline tarval *_get_tarval_undefined(void)
+static inline ir_tarval *_get_tarval_undefined(void)
 {
        return tarval_undefined;
 }
 
-static inline tarval *_get_tarval_b_false(void)
+static inline ir_tarval *_get_tarval_b_false(void)
 {
        return tarval_b_false;
 }
 
-static inline tarval *_get_tarval_b_true(void)
+static inline ir_tarval *_get_tarval_b_true(void)
 {
        return tarval_b_true;
 }
 
-static inline tarval *_get_tarval_reachable(void)
+static inline ir_tarval *_get_tarval_reachable(void)
 {
        return tarval_reachable;
 }
 
-static inline tarval *_get_tarval_unreachable(void)
+static inline ir_tarval *_get_tarval_unreachable(void)
 {
        return tarval_unreachable;
 }