summary refs log tree commit diff stats
path: root/compiler/nir/nirfiles.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nir/nirfiles.nim')
-rw-r--r--compiler/nir/nirfiles.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/nir/nirfiles.nim b/compiler/nir/nirfiles.nim
index f6c73178b..cd5a79f06 100644
--- a/compiler/nir/nirfiles.nim
+++ b/compiler/nir/nirfiles.nim
@@ -16,6 +16,8 @@ type
     man*: LineInfoManager
     types*: TypeGraph
     lit*: Literals
+    namespace*: LitId
+    intbits*: uint32
     symnames*: SymNames
 
 proc load*(filename: string): NirModule =
@@ -39,6 +41,10 @@ proc load*(filename: string): NirModule =
     r.loadSection sideChannelSection
     r.load result.man
 
+    r.loadSection namespaceSection
+    r.loadPrim result.namespace
+    r.loadPrim result.intbits
+
     r.loadSection symnamesSection
     r.load result.symnames
 
@@ -64,6 +70,10 @@ proc store*(m: NirModule; outp: string) =
     r.storeSection sideChannelSection
     r.store m.man
 
+    r.storeSection namespaceSection
+    r.storePrim m.namespace
+    r.storePrim m.intbits
+
     r.storeSection symnamesSection
     r.store m.symnames