c++: refactor a few class.c fns

Nathan Sidwell nathan@acm.org
Tue Jul 14 15:21:49 GMT 2020


Storing CLASSTYPE_AS_BASE in a local variable makes some code clearer 
(and textually no longer).  For some reason we store a DECL in a 
variable called 'value', which is confusing.

             gcc/cp/
             * class.c (build_base_field_1): Cache CLASSTYPE_AS_BASE.
             (build_self_reference): Rename value -> decl.
             (dump_class_hierarchy_1): Cache CLASSTYPE_AS_BASE.

pushed
-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-class.diff
Type: text/x-patch
Size: 2492 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200714/ede980c2/attachment.bin>


More information about the Gcc-patches mailing list