summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-09-07 19:52:56 +0200
committerMatthias Braun <matze@braunis.de>2015-09-07 19:56:45 +0200
commit1eb94d6ddea22cdf0e34e227cb390178ddddf6ac (patch)
treef49d6470fe683d50fd645a5864ba7e33f32b0152 /ir/be/begnuas.c
parent4e57aaa15f5fa582a0e700eaf4b747ad95107872 (diff)
begnuas: rename entity_is_null -> entity_is_zero_initialized
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index e6b6738..d992548 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -389,7 +389,7 @@ static bool entity_is_string_const(const ir_entity *ent, bool only_suffix_null)
return initializer_is_string_const(init, only_suffix_null);
}
-static bool entity_is_null(const ir_entity *entity)
+static bool entity_is_zero_initialized(ir_entity const *entity)
{
ir_initializer_t *initializer = get_entity_initializer(entity);
return initializer == NULL || initializer_is_null(initializer);
@@ -482,7 +482,7 @@ static be_gas_section_t determine_basic_section(const ir_entity *entity)
return GAS_SECTION_RODATA;
}
}
- if (entity_is_null(entity) && !is_alias_entity(entity))
+ if (entity_is_zero_initialized(entity) && !is_alias_entity(entity))
return GAS_SECTION_BSS;
return GAS_SECTION_DATA;
@@ -1454,7 +1454,7 @@ static void emit_global(be_main_env_t const *const main_env,
return;
}
- if (entity_is_null(entity)) {
+ if (entity_is_zero_initialized(entity)) {
assert(size > 0);
/* use .space for stuff in the bss segment */
be_emit_irprintf("\t.space %u, 0\n", size);