aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-05-11 00:29:04 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:37:19 +0100
commit215925bccc70eb5f9f9b5ac925115498c3e7990c (patch)
treec2a6a1057944e0d75568841de9c9d06d4fa23bdd
parent3bbc4ca198c61d31e47ab493dbfd5a0eb1d97d31 (diff)
downloadgcc-215925bccc70eb5f9f9b5ac925115498c3e7990c.zip
gcc-215925bccc70eb5f9f9b5ac925115498c3e7990c.tar.gz
gcc-215925bccc70eb5f9f9b5ac925115498c3e7990c.tar.bz2
gccrs: Make MacroInvocation cloning public
gcc/rust/ChangeLog: * ast/rust-macro.h (MacroInvocation::clone_macro_invocation_impl): Make public. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
-rw-r--r--gcc/rust/ast/rust-macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h
index c7472de..bdf3eff 100644
--- a/gcc/rust/ast/rust-macro.h
+++ b/gcc/rust/ast/rust-macro.h
@@ -775,11 +775,13 @@ protected:
return clone_macro_invocation_impl ();
}
+public:
/*virtual*/ MacroInvocation *clone_macro_invocation_impl () const
{
return new MacroInvocation (*this);
}
+protected:
Item *clone_item_impl () const override
{
return clone_macro_invocation_impl ();