mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 22:25:59 +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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user