summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-09-14 22:28:12 +0200
committerGitHub <noreply@github.com>2018-09-14 22:28:12 +0200
commit0c04b80651ff591beadb873c8814168e66e6b722 (patch)
treeadd75ce87964ac299f102b9ff1ccfe8400c93fea /lib/system
parent9995f50050298dc435a237b29dd0ff258ba25b9b (diff)
parent839953c3e167828f93bdddd27ae88c5909c8aca9 (diff)
downloadNim-0c04b80651ff591beadb873c8814168e66e6b722.tar.gz
Merge pull request #8966 from LemonBoy/fix-8964
Fix hashing for codegenProc (sic) types
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/hti.nim12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/system/hti.nim b/lib/system/hti.nim
index 9931fa11e..c7b52bbdf 100644
--- a/lib/system/hti.nim
+++ b/lib/system/hti.nim
@@ -7,12 +7,6 @@
 #    distribution, for details about the copyright.
 #
 
-when declared(ThisIsSystem):
-  # we are in system module:
-  {.pragma: codegenType, compilerproc.}
-else:
-  {.pragma: codegenType.}
-
 type
   # This should be the same as ast.TTypeKind
   # many enum fields are not used at runtime
@@ -79,7 +73,7 @@ type
     tyVoidHidden
 
   TNimNodeKind = enum nkNone, nkSlot, nkList, nkCase
-  TNimNode {.codegenType.} = object
+  TNimNode {.compilerProc.} = object
     kind: TNimNodeKind
     offset: int
     typ: ptr TNimType
@@ -92,7 +86,7 @@ type
     ntfAcyclic = 1,    # type cannot form a cycle
     ntfEnumHole = 2    # enum has holes and thus `$` for them needs the slow
                        # version
-  TNimType {.codegenType.} = object
+  TNimType {.compilerProc.} = object
     size: int
     kind: TNimKind
     flags: set[TNimTypeFlag]
@@ -109,6 +103,6 @@ type
   PNimType = ptr TNimType
 
 when defined(nimTypeNames):
-  var nimTypeRoot {.codegenType.}: PNimType
+  var nimTypeRoot {.compilerProc.}: PNimType
 
 # node.len may be the ``first`` element of a set