c++: Simplify __FUNCTION__ creation
authorNathan Sidwell <nathan@acm.org>
Fri, 2 Oct 2020 11:58:57 +0000 (04:58 -0700)
committerNathan Sidwell <nathan@acm.org>
Fri, 2 Oct 2020 12:01:17 +0000 (05:01 -0700)
commit1d3e12c469e5f5627c2e271232e1a3d8a88783be
tree767e018251ed3831e26df13d1ccb9586f0302df1
parent05d39f0de9ee0455d7b2b60f314f4231bc9a87c1
c++: Simplify __FUNCTION__ creation

I had reason to wander into cp_make_fname, and noticed it's the only
caller of cp_fname_init.  Folding it in makes the code simpler.

gcc/cp/
* cp-tree.h (cp_fname_init): Delete declaration.
* decl.c (cp_fname_init): Merge into only caller ...
(cp_make_fname): ... here & refactor.
gcc/cp/cp-tree.h
gcc/cp/decl.c