Make pointer_query cache a private member.
authorMartin Sebor <msebor@redhat.com>
Thu, 3 Feb 2022 20:56:50 +0000 (13:56 -0700)
committerMartin Sebor <msebor@redhat.com>
Thu, 3 Feb 2022 20:56:50 +0000 (13:56 -0700)
commit68e9b7b69a1d36ff86c54d52fba034737d9433c3
tree75008e82e8c85c3b087dc5d7e82cd0e1c3a39e49
parent3c9f762ad02f398c27275688c3494332f69237f5
Make pointer_query cache a private member.

gcc/ChangeLog:

* gimple-ssa-warn-access.cc (pass_waccess::pass_waccess): Remove
pointer_query cache.
* pointer-query.cc (pointer_query::pointer_query): Remove cache
argument.  Zero-initialize new cache member.
(pointer_query::get_ref): Replace cache pointer with direct access.
(pointer_query::put_ref): Same.
(pointer_query::flush_cache): Same.
(pointer_query::dump): Same.
* pointer-query.h (class pointer_query): Remove cache argument from
ctor.  Change cache pointer to cache subobject member.
* tree-ssa-strlen.cc: Remove pointer_query cache.
gcc/gimple-ssa-warn-access.cc
gcc/pointer-query.cc
gcc/pointer-query.h
gcc/tree-ssa-strlen.cc