From: Christoph Mallon Date: Sat, 21 Apr 2012 18:06:22 +0000 (+0200) Subject: Make new_type() static. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=inline;h=4de03dcc6a6b5cff24c69afeeb2698c4a4506b19;p=libfirm Make new_type() static. --- diff --git a/ir/tr/type.c b/ir/tr/type.c index 88144aac5..e4f9b3aea 100644 --- a/ir/tr/type.c +++ b/ir/tr/type.c @@ -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; diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h index 7923b1ec2..65eb07a71 100644 --- a/ir/tr/type_t.h +++ b/ir/tr/type_t.h @@ -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);