diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-12-08 10:38:10 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-12-08 10:41:15 -0800 |
commit | dded5f78ccb785520804444871a7b6ca4b735370 (patch) | |
tree | ce07f49d461a256bf322fa2e9be7ad3bf439905b /gcc/cp/class.c | |
parent | 5312fa0fd95aab112abe40f2a5cdb70a76e89fbf (diff) | |
download | gcc-dded5f78ccb785520804444871a7b6ca4b735370.zip gcc-dded5f78ccb785520804444871a7b6ca4b735370.tar.gz gcc-dded5f78ccb785520804444871a7b6ca4b735370.tar.bz2 |
c++: template and clone fns for modules
We need to expose build_cdtor_clones, it fortunately has the desired
API -- gosh, how did that happen? :) The template machinery will need
to cache path-of-instantiation information, so add two more fields to
the tinst_level struct. I also had to adjust the
match_mergeable_specialization API since adding it, so including that
change too.
gcc/cp/
* cp-tree.h (struct tinst_level): Add path & visible fields.
(build_cdtor_clones): Declare.
(match_mergeable_specialization): Use a spec_entry, add insert parm.
* class.c (build_cdtor_clones): Externalize.
* pt.c (push_tinst_level_loc): Clear new fields.
(match_mergeable_specialization): Adjust API.
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index ec47b06..2ab123d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -4920,7 +4920,7 @@ build_clone (tree fn, tree name, bool need_vtt_parm_p, /* Build the clones of FN, return the number of clones built. These will be inserted onto DECL_CHAIN of FN. */ -static void +void build_cdtor_clones (tree fn, bool needs_vtt_p, bool base_omits_inherited_p, bool update_methods) { |