From: Christoph Mallon Date: Sun, 23 Dec 2012 11:28:52 +0000 (+0100) Subject: ast2firm: Make get_ir_type() static. X-Git-Url: http://nsz.repo.hu/git/?p=cparser;a=commitdiff_plain;h=e3de7eaecb549e58c466d70b8f24d1f53aa9fc8a ast2firm: Make get_ir_type() static. --- diff --git a/ast2firm.c b/ast2firm.c index 7790c60..384450c 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -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); diff --git a/ast2firm.h b/ast2firm.h index df1b443..1b3b60a 100644 --- a/ast2firm.h +++ b/ast2firm.h @@ -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);