fixes #937
This commit is contained in:
parent
1ce30b9e10
commit
aa92669d92
5 changed files with 47 additions and 6 deletions
|
|
@ -161,6 +161,13 @@ proc hashType(c: var MD5Context, t: PType) =
|
|||
if tfShared in t.flags: c &= "shared"
|
||||
if tfNotNil in t.flags: c &= "not nil"
|
||||
|
||||
proc canonConst(n: PNode): TUid =
|
||||
var c: MD5Context
|
||||
md5Init(c)
|
||||
c.hashTree(n)
|
||||
c.hashType(n.typ)
|
||||
md5Final(c, MD5Digest(result))
|
||||
|
||||
proc canonSym(s: PSym): TUid
|
||||
var c: MD5Context
|
||||
md5Init(c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue