diff options
author | Araq <rumpf_a@web.de> | 2019-09-05 11:55:54 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-09-05 16:45:07 +0200 |
commit | 49f63d3aaed200d01ef5cd806f0079cbdfb81788 (patch) | |
tree | 4044f150a818d8f940681453116a49f6c3df4791 /compiler/rodimpl.nim | |
parent | a5e2db2ac53aa61d0e050ee6487e38c647eb442d (diff) | |
download | Nim-49f63d3aaed200d01ef5cd806f0079cbdfb81788.tar.gz |
ic: update to serialize paddingAtEnd
Diffstat (limited to 'compiler/rodimpl.nim')
-rw-r--r-- | compiler/rodimpl.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rodimpl.nim b/compiler/rodimpl.nim index b58f77ff6..2c84111d8 100644 --- a/compiler/rodimpl.nim +++ b/compiler/rodimpl.nim @@ -223,6 +223,9 @@ proc encodeType(g: ModuleGraph, t: PType, result: var string) = if t.lockLevel.ord != UnspecifiedLockLevel.ord: add(result, '\14') encodeVInt(t.lockLevel.int16, result) + if t.paddingAtEnd != 0: + add(result, '\15') + encodeVInt(t.paddingAtEnd, result) for a in t.attachedOps: add(result, '\16') if a == nil: @@ -631,6 +634,10 @@ proc loadType(g; id: int; info: TLineInfo): PType = else: result.lockLevel = UnspecifiedLockLevel + if b.s[b.pos] == '\15': + inc(b.pos) + result.paddingAtEnd = decodeVInt(b.s, b.pos).int16 + for a in low(result.attachedOps)..high(result.attachedOps): if b.s[b.pos] == '\16': inc(b.pos) |