generate default destructors

This commit is contained in:
Zahary Karadjov 2012-06-06 18:34:35 +03:00
commit d10b524c9a
4 changed files with 107 additions and 16 deletions

View file

@ -1062,10 +1062,3 @@ proc getSize(typ: PType): biggestInt =
result = computeSize(typ)
if result < 0: InternalError("getSize(" & $typ.kind & ')')
proc instantiateDestructor*(typ: PType): bool =
# return true if the type already had a user-defined
# destructor or if the compiler generated a default
# member-wise one
if typ.destructor != nil: return true
return false