From: Owen Avery Date: Thu, 11 May 2023 04:29:04 +0000 (-0400) Subject: gccrs: Make MacroInvocation cloning public X-Git-Tag: basepoints/gcc-15~2541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215925bccc70eb5f9f9b5ac925115498c3e7990c;p=thirdparty%2Fgcc.git gccrs: Make MacroInvocation cloning public gcc/rust/ChangeLog: * ast/rust-macro.h (MacroInvocation::clone_macro_invocation_impl): Make public. Signed-off-by: Owen Avery --- diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index c7472decc277..bdf3eff3dc66 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 ();