diff options
author | Arne Döring <arne.doering@gmx.net> | 2017-08-10 14:36:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-10 14:36:21 +0200 |
commit | 4c31bc1cd19dd46b95717b8b3bbcd9257c361753 (patch) | |
tree | ba0a4e4504d25dd160760f50d06480ac99ba2fb6 /compiler | |
parent | 4fdf7f2ea3c1019635a21c96265372ef166ccce0 (diff) | |
download | Nim-4c31bc1cd19dd46b95717b8b3bbcd9257c361753.tar.gz |
type kind is now part of the generated name for types (#6203)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtypes.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index e63e97e0f..bd3e6d40d 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -123,10 +123,11 @@ const proc typeName(typ: PType): Rope = let typ = typ.skipTypes(irrelevantForBackend) - result = if typ.sym != nil and typ.kind in {tyObject, tyEnum}: - typ.sym.name.s.mangle.rope - else: - ~"TY" + result = + if typ.sym != nil and typ.kind in {tyObject, tyEnum}: + typ.sym.name.s.mangle.rope + else: + rope($typ.kind) proc getTypeName(m: BModule; typ: PType; sig: SigHash): Rope = var t = typ |