aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-07-22 07:52:31 -0700
committerNathan Sidwell <nathan@acm.org>2020-07-22 08:43:24 -0700
commit5980c0dcc6b3c2bb2f01f2140f48beb3fe3ffee6 (patch)
tree025af8b0125ae8528833746bd714485d51fdb8c7 /gcc/cp/class.c
parent748ada0acb6fd746207aaff23a468717eee06555 (diff)
downloadgcc-5980c0dcc6b3c2bb2f01f2140f48beb3fe3ffee6.zip
gcc-5980c0dcc6b3c2bb2f01f2140f48beb3fe3ffee6.tar.gz
gcc-5980c0dcc6b3c2bb2f01f2140f48beb3fe3ffee6.tar.bz2
c++: mangling cleanups
I noticed the mangler's handling of templates could be simplified. We know template_info is non-null, which is sufficiently boolean -- no need for an explicit bool return. also some of the internals of template_args_equal had crept into find_substitution. Let's not do that. gcc/cp/ * mangle.c (decl_is_template_id): Rename to ... (maybe_template_info): ... here. Return the template info, rather than use a pointer. Adjust all callers. (find_substitution): Use template_args_equal, rather than local check.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions