X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftypewalk.c;h=7466b6ecf49b802c273c2a079a9f02dcc7cf6cab;hb=2158510961e84fb11e9195c200335f2314e49055;hp=2cd77fc97d928bf53a07939e8f72b594e0b95cb1;hpb=32ea6ea0320f551448bb66e534e3351977464d42;p=libfirm diff --git a/ir/tr/typewalk.c b/ir/tr/typewalk.c index 2cd77fc97..7466b6ecf 100644 --- a/ir/tr/typewalk.c +++ b/ir/tr/typewalk.c @@ -60,7 +60,7 @@ static void walk_initializer(ir_initializer_t *initializer, type_walk_func *pre, type_walk_func *post, void *env) { - switch(initializer->kind) { + switch (initializer->kind) { case IR_INITIALIZER_CONST: irn_type_walker(initializer->consti.value, pre, post, env); return; @@ -70,7 +70,7 @@ static void walk_initializer(ir_initializer_t *initializer, case IR_INITIALIZER_COMPOUND: { size_t i; - for(i = 0; i < initializer->compound.n_initializers; ++i) { + for (i = 0; i < initializer->compound.n_initializers; ++i) { ir_initializer_t *subinitializer = initializer->compound.initializers[i]; walk_initializer(subinitializer, pre, post, env); @@ -287,13 +287,13 @@ void type_walk_prog(type_walk_func *pre, type_walk_func *post, void *env) do_type_walk(cont, pre, post, env); cont.typ = get_method_value_param_type(get_entity_type(get_irg_entity(irg))); - if(cont.typ) + if (cont.typ) do_type_walk(cont, pre, post, env); } for (i = IR_SEGMENT_FIRST; i <= IR_SEGMENT_LAST; ++i) { cont.typ = get_segment_type((ir_segment_t) i); - if(cont.typ) + if (cont.typ) do_type_walk(cont, pre, post, env); } } @@ -430,11 +430,9 @@ void type_walk_super2sub(type_walk_func *pre, /*****************************************************************************/ -static void -type_walk_super_2(type_or_ent tore, - type_walk_func *pre, - type_walk_func *post, - void *env) { +static void type_walk_super_2(type_or_ent tore, type_walk_func *pre, + type_walk_func *post, void *env) +{ type_or_ent cont; int i, n; @@ -499,9 +497,8 @@ type_walk_super_2(type_or_ent tore, } } -void type_walk_super(type_walk_func *pre, - type_walk_func *post, - void *env) { +void type_walk_super(type_walk_func *pre, type_walk_func *post, void *env) +{ int i, n_types = get_irp_n_types(); type_or_ent cont; @@ -519,11 +516,8 @@ void type_walk_super(type_walk_func *pre, /*****************************************************************************/ -static void -class_walk_s2s_2(ir_type *tp, - class_walk_func *pre, - class_walk_func *post, - void *env) +static void class_walk_s2s_2(ir_type *tp, class_walk_func *pre, + class_walk_func *post, void *env) { int i, n;