c++: Get rid of convert_like* macros.
authorMarek Polacek <polacek@redhat.com>
Wed, 15 Jul 2020 20:40:54 +0000 (16:40 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 16 Jul 2020 13:29:38 +0000 (09:29 -0400)
commit3594ef552171eef9ce5fe824b5b5fa4bc1c071d2
tree8fca842eef7b645e462c97ed2777a7f45859c41a
parenta2086f986e216dc02b64317fe07c4eaae567957c
c++: Get rid of convert_like* macros.

The convert_like* macros were introduced in

  2000-03-05  Nathan Sidwell  <nathan@codesourcery.com>

        * call.c (convert_like): Macrofy.
        (convert_like_with_context): New macro.

but now we can use overloading so we can do away with the macros.
I've also taken this chance to rename _real to _internal to make it
clear that it should not be called directly.

No functional change intended.

gcc/cp/ChangeLog:

* call.c (convert_like): Remove macro and introduce a new
wrapper instead.
(convert_like_with_context): Likewise.
(convert_like_real): Rename to convert_like.
(convert_like_real_1): Rename to convert_like_internal.  Call
convert_like instead of convert_like_real therein.
(perform_direct_initialization_if_possible): Call convert_like
instead of convert_like_real.
gcc/cp/call.c