c++: Refactor some class fns
authorNathan Sidwell <nathan@acm.org>
Tue, 14 Jul 2020 15:11:13 +0000 (08:11 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 14 Jul 2020 15:20:38 +0000 (08:20 -0700)
commit4d4a0aa42322c84b472c299f4e33c0044650cc2e
tree9cd4708a575d275954fcde727770fd161dbceb4f
parent4f97bed9a7989e14cbb53e405fbd8b3c08aa75ec
c++: Refactor some class fns

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.
gcc/cp/class.c