RTTI: don't generate full RTTI for internal types

These are types created by the code generator for internal purposes, and hence
are never queried by user code
This commit is contained in:
Jonas Maebe 2022-10-29 13:45:48 +02:00
parent f0e31628ad
commit 49fb1b4c29

View File

@ -168,12 +168,15 @@ implementation
(ds_init_table_used in def.defstates) then
RTTIWriter.write_rtti(def,initrtti);
{ RTTI }
if (
assigned(def.typesym) and
is_global and
not is_objc_class_or_protocol(def)
) or
(ds_rtti_table_used in def.defstates) then
if not(df_internal in def.defoptions) and
(
(
assigned(def.typesym) and
is_global and
not is_objc_class_or_protocol(def)
) or
(ds_rtti_table_used in def.defstates)
) then
RTTIWriter.write_rtti(def,fullrtti);
end;
end;