Make new_type() static.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 21 Apr 2012 18:06:22 +0000 (20:06 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 21 Apr 2012 18:06:22 +0000 (20:06 +0200)
ir/tr/type.c
ir/tr/type_t.h

index 88144aa..e4f9b3a 100644 (file)
@@ -64,6 +64,8 @@
 
 #include "array.h"
 
+static ir_type *new_type(tp_op const *type_op, ir_mode *mode, type_dbg_info *db);
+
 ir_type *get_none_type(void)
 {
        return irp->none_type;
@@ -118,7 +120,17 @@ void (inc_master_type_visited)(void)
        _inc_master_type_visited();
 }
 
-ir_type *new_type(const tp_op *type_op, ir_mode *mode, type_dbg_info *db)
+/**
+ *   Creates a new type representation:
+ *
+ *   @param type_op  the kind of this type.  May not be type_id.
+ *   @param mode     the mode to be used for this type, may be NULL
+ *   @param db       debug info
+ *
+ *   @return A new type of the given type.  The remaining private attributes are
+ *           not initialized.  The type is in state layout_undefined.
+ */
+static ir_type *new_type(tp_op const *type_op, ir_mode *mode, type_dbg_info *db)
 {
        ir_type *res;
        size_t node_size;
index 7923b1e..65eb07a 100644 (file)
@@ -186,18 +186,6 @@ struct ir_type {
                                      last entry in this struct!  Varying size! */
 };
 
-/**
- *   Creates a new type representation:
- *
- *   @param type_op  the kind of this type.  May not be type_id.
- *   @param mode     the mode to be used for this type, may be NULL
- *   @param db       debug info
- *
- *   @return A new type of the given type.  The remaining private attributes are not
- *           initialized.  The type is in state layout_undefined.
- */
-ir_type *new_type(const tp_op *type_op, ir_mode *mode, type_dbg_info *db);
-
 void free_type_entities(ir_type *tp);
 
 void free_class_entities      (ir_type *clss);