From e3de7eaecb549e58c466d70b8f24d1f53aa9fc8a Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 23 Dec 2012 12:28:52 +0100 Subject: [PATCH] ast2firm: Make get_ir_type() static. --- ast2firm.c | 4 +++- ast2firm.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.20.1