From 06917784d033fcf9e4a1c59888ef5758971e8105 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Wed, 11 Sep 2024 00:46:58 +0300 Subject: [PATCH] - removed redundant if --- compiler/dbgdwarf.pas | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/compiler/dbgdwarf.pas b/compiler/dbgdwarf.pas index 0b67781a54..1d75f00ef5 100644 --- a/compiler/dbgdwarf.pas +++ b/compiler/dbgdwarf.pas @@ -2385,16 +2385,13 @@ implementation (ts_wasm_threads in current_settings.targetswitches)) then begin {$ifdef wasm} - if target_info.system in systems_wasm then - begin - templist.concat(tai_const.create_8bit(ord(DW_OP_WASM_location))); - templist.concat(tai_const.create_8bit(3)); { wasm global } - templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,TLS_BASE_SYM,AT_WASM_GLOBAL,0)); - templist.concat(tai_const.create_8bit(ord(DW_OP_addr))); - templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,sym.mangledname,0)); - templist.concat(tai_const.create_8bit(ord(DW_OP_plus))); - blocksize:=3+2*sizeof(puint); - end; + templist.concat(tai_const.create_8bit(ord(DW_OP_WASM_location))); + templist.concat(tai_const.create_8bit(3)); { wasm global } + templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,TLS_BASE_SYM,AT_WASM_GLOBAL,0)); + templist.concat(tai_const.create_8bit(ord(DW_OP_addr))); + templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,sym.mangledname,0)); + templist.concat(tai_const.create_8bit(ord(DW_OP_plus))); + blocksize:=3+2*sizeof(puint); {$else wasm} if tf_section_threadvars in target_info.flags then begin