diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 2aa92c130e..b40f8a5dac 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -54,13 +54,31 @@ proc mangleField(m: BModule; name: PIdent): string = if isKeyword(name): result.add "_0" +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..