X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeasm_dump_globals.c;h=e48fbdee75369434bdc07641a4eb6e0429a963dc;hb=321bc1e19e5a19a0126ccc1fe7ed428416b6a6d0;hp=d0ffcada04f76507f95d948909e9105b51287335;hpb=d8ac27021935a22c60896050e330fd42be0a742b;p=libfirm diff --git a/ir/be/beasm_dump_globals.c b/ir/be/beasm_dump_globals.c index d0ffcada0..e48fbdee7 100644 --- a/ir/be/beasm_dump_globals.c +++ b/ir/be/beasm_dump_globals.c @@ -211,6 +211,8 @@ static void asm_dump_global ( assembler_t *assembler, entity *ent) const char *ld_name = get_entity_ld_name(ent); int align, is_constant, h; int i,j,size = 0; + ent_variability variability; + ent_visibility visibility; asm_segment_t target_segment = ASM_SEGMENT_DATA_INIT; @@ -219,19 +221,19 @@ static void asm_dump_global ( assembler_t *assembler, entity *ent) */ /* ignore methods, they are emitted later */ - if(is_Method_type(ty)) + if (is_Method_type(ty)) return; /* get the properties of the entity */ - ent_variability variability = get_entity_variability(ent); - ent_visibility visibility = get_entity_visibility(ent); + variability = get_entity_variability(ent); + visibility = get_entity_visibility(ent); if (variability == variability_constant) { /* a constant entity, put it into the const segment */ target_segment = ASM_SEGMENT_CONST; } - /* check, wether it is initialized, if yes create data */ + /* check, whether it is initialized, if yes create data */ if (variability != variability_uninitialized ) { /* if (visibility == visibility_external_visible) {