c++: Break out actual instantiation from instantiate_decl
authorNathan Sidwell <nathan@acm.org>
Wed, 16 Sep 2020 14:14:14 +0000 (07:14 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 16 Sep 2020 14:19:48 +0000 (07:19 -0700)
commit2b7147e48564679d53b3c6629714991c5506d614
treec8384909fae9d6821f829dbe44359a47675bbdb0
parent052204fac580b21c967e57e6285d99a9828b8fac
c++: Break out actual instantiation from instantiate_decl

This refactors instantiate_decl, breaking out the actual instantiation
work to instantiate_body.  That'll allow me to address the OMP UDR
issue, but it also means we have slightly neater code in
instantiate_decl anyway.

gcc/cp/
* pt.c (instantiate_body): New, broken out of ..
(instantiate_decl): ... here.  Call it.
gcc/cp/pt.c