]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove unnecessary `record` argument from maybe_version_functions.
authorAlfie Richards <alfie.richards@arm.com>
Tue, 28 Jan 2025 15:42:49 +0000 (15:42 +0000)
committerAlfie Richards <alfie.richards@arm.com>
Wed, 16 Jul 2025 09:04:31 +0000 (09:04 +0000)
commit33bedfcaf2a4d7951465b252c09ee055ae052422
tree365c4dc36761fea58271f7caeee7038675752efc
parente079474981a89476f117596b83bdc3b686351f68
Remove unnecessary `record` argument from maybe_version_functions.

Previously, the `record` argument in maybe_version_function allowed the
call to cgraph_node::record_function_versions to be skipped.  However,
this was only skipped when both decls were already marked as versioned,
in which case we trigger the early exit in record_function_versions
instead. Therefore, the argument is unnecessary.

gcc/cp/ChangeLog:

* class.cc (add_method): Remove argument.
* cp-tree.h (maybe_version_functions): Ditto.
* decl.cc (decls_match): Ditto.
(maybe_version_functions): Ditto.
gcc/cp/class.cc
gcc/cp/cp-tree.h
gcc/cp/decl.cc