From d98e5aaa62bb1dfdc3ce73d05d03eaa6c875164a Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Thu, 11 May 2023 00:29:04 -0400 Subject: Make MacroInvocation cloning public gcc/rust/ChangeLog: * ast/rust-macro.h (MacroInvocation::clone_macro_invocation_impl): Make public. Signed-off-by: Owen Avery --- gcc/rust/ast/rust-macro.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc') 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 (); -- cgit v1.1