aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-05-11 00:29:04 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-05-17 16:12:25 +0000
commitd98e5aaa62bb1dfdc3ce73d05d03eaa6c875164a (patch)
tree30177d17164973e466c48f52b6786d5ff4f2f81d /gcc
parent6dd946dc1150df377f65367f78ef0b507f0438bd (diff)
downloadgcc-d98e5aaa62bb1dfdc3ce73d05d03eaa6c875164a.zip
gcc-d98e5aaa62bb1dfdc3ce73d05d03eaa6c875164a.tar.gz
gcc-d98e5aaa62bb1dfdc3ce73d05d03eaa6c875164a.tar.bz2
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>
Diffstat (limited to 'gcc')
-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 0889aae..5f2544e 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 ();