parent
eae31a7f8d
commit
a693ce7765
1 changed files with 3 additions and 5 deletions
|
|
@ -667,7 +667,7 @@ proc loadType(g; id: int; info: TLineInfo): PType =
|
||||||
rawAddSon(result, nil)
|
rawAddSon(result, nil)
|
||||||
else:
|
else:
|
||||||
let d = decodeVInt(b.s, b.pos)
|
let d = decodeVInt(b.s, b.pos)
|
||||||
rawAddSon(result, loadType(g, d, info))
|
result.sons.add loadType(g, d, info)
|
||||||
|
|
||||||
proc decodeLib(g; b; info: TLineInfo): PLib =
|
proc decodeLib(g; b; info: TLineInfo): PLib =
|
||||||
result = nil
|
result = nil
|
||||||
|
|
@ -719,10 +719,8 @@ proc loadSymFromBlob(g; b; info: TLineInfo): PSym =
|
||||||
else:
|
else:
|
||||||
internalError(g.config, info, "decodeSym: no ident")
|
internalError(g.config, info, "decodeSym: no ident")
|
||||||
#echo "decoding: {", ident.s
|
#echo "decoding: {", ident.s
|
||||||
new(result)
|
result = PSym(id: id, kind: k, name: ident)
|
||||||
result.id = id
|
# read the rest of the symbol description:
|
||||||
result.kind = k
|
|
||||||
result.name = ident # read the rest of the symbol description:
|
|
||||||
g.incr.r.syms.add(result.id, result)
|
g.incr.r.syms.add(result.id, result)
|
||||||
if b.s[b.pos] == '^':
|
if b.s[b.pos] == '^':
|
||||||
inc(b.pos)
|
inc(b.pos)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue