mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 13:19:12 +02:00
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:
parent
f0e31628ad
commit
49fb1b4c29
@ -168,12 +168,15 @@ implementation
|
|||||||
(ds_init_table_used in def.defstates) then
|
(ds_init_table_used in def.defstates) then
|
||||||
RTTIWriter.write_rtti(def,initrtti);
|
RTTIWriter.write_rtti(def,initrtti);
|
||||||
{ RTTI }
|
{ RTTI }
|
||||||
if (
|
if not(df_internal in def.defoptions) and
|
||||||
|
(
|
||||||
|
(
|
||||||
assigned(def.typesym) and
|
assigned(def.typesym) and
|
||||||
is_global and
|
is_global and
|
||||||
not is_objc_class_or_protocol(def)
|
not is_objc_class_or_protocol(def)
|
||||||
) or
|
) or
|
||||||
(ds_rtti_table_used in def.defstates) then
|
(ds_rtti_table_used in def.defstates)
|
||||||
|
) then
|
||||||
RTTIWriter.write_rtti(def,fullrtti);
|
RTTIWriter.write_rtti(def,fullrtti);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user