summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-10-06 06:12:32 +0200
committerMatthias Braun <matze@braunis.de>2015-10-06 06:32:58 +0200
commitf8b38c80d0cf435a107a4decf564194670ae688e (patch)
tree35a40eaa900b3b3d0957ef98537c1bd49701fadc /ir/be/begnuas.c
parent4602d9835eb905507307a1ea00258162afd53b43 (diff)
begnuas: switch section first before emitting entity visibility
It doesn't matter for correctness but looks nicer.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index ac95be7..67bf966 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -1419,13 +1419,13 @@ static void emit_global(be_main_env_t const *const main_env,
|| visibility == ir_visibility_private
|| (linkage & IR_LINKAGE_MERGE));
- emit_visibility(entity, use_common_directive);
-
if (use_common_directive) {
+ emit_visibility(entity, true);
emit_common(entity, visibility == ir_visibility_local
|| visibility == ir_visibility_private);
} else {
emit_section(section, entity);
+ emit_visibility(entity, false);
if (section == GAS_SECTION_PIC_TRAMPOLINES
|| section == GAS_SECTION_PIC_SYMBOLS) {