From 6cd03bae2929dfd3f88008f49d0624942ef8d558 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 23 May 2024 08:53:45 +0200 Subject: [PATCH] Minor refactoring (#23637) --- compiler/ccgtypes.nim | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 1366caab30..927b56bbad 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -55,14 +55,14 @@ proc mangleField(m: BModule; name: PIdent): string = if isKeyword(name): result.add "_0" -proc mangleProc(m: BModule; s: PSym; makeUnique: bool): string = +proc mangleProc(m: BModule; s: PSym; makeUnique: bool): string = result = "_Z" # Common prefix in Itanium ABI result.add encodeSym(m, s, makeUnique) if s.typ.len > 1: #we dont care about the return param - for i in 1..