From efb58316e745bcec4fa46f76c8f2c69208a44928 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 21 Sep 2012 13:38:25 +0200 Subject: [PATCH] fix comdat emitting on macho --- ir/be/begnuas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index aa1e175cf..46e16006e 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -95,8 +95,6 @@ static void emit_section_macho(be_gas_section_t section) case GAS_SECTION_DEBUG_FRAME: name = "section __DWARF,__debug_frame,regular,debug"; break; default: panic("unsupported scetion type 0x%X", section); } - be_emit_irprintf("\t.%s\n", name); - be_emit_write_line(); } else if (flags & GAS_SECTION_FLAG_COMDAT) { switch (base) { case GAS_SECTION_TEXT: name = "section __TEXT,__textcoal_nt,coalesced,pure_instructions"; break; @@ -111,6 +109,8 @@ static void emit_section_macho(be_gas_section_t section) } else { panic("unsupported section type 0x%X", section); } + be_emit_irprintf("\t.%s\n", name); + be_emit_write_line(); } static void emit_section_sparc(be_gas_section_t section, const ir_entity *entity) -- 2.20.1