ast2firm: Make get_ir_type() static.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 23 Dec 2012 11:28:52 +0000 (12:28 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 27 Dec 2012 11:56:08 +0000 (12:56 +0100)
ast2firm.c
ast2firm.h

index 7790c60..384450c 100644 (file)
@@ -328,6 +328,8 @@ static type_t *get_parameter_type(type_t *orig_type)
        return type;
 }
 
+static ir_type *get_ir_type(type_t *type);
+
 static ir_type *create_method_type(const function_type_t *function_type, bool for_closure)
 {
        type_t        *return_type  = skip_typeref(function_type->return_type);
@@ -674,7 +676,7 @@ static ir_type *get_ir_type_incomplete(type_t *type)
        }
 }
 
-ir_type *get_ir_type(type_t *type)
+static ir_type *get_ir_type(type_t *type)
 {
        type = skip_typeref(type);
 
index df1b443..1b3b60a 100644 (file)
@@ -14,8 +14,6 @@ void translation_unit_to_firm(translation_unit_t *unit);
 void init_ast2firm(void);
 void exit_ast2firm(void);
 
-ir_type *get_ir_type(type_t *type);
-
 typedef ident* (*create_ld_ident_func)(entity_t *entity);
 
 void set_create_ld_ident(create_ld_ident_func func);