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>
This commit is contained in:
Owen Avery 2023-05-11 00:29:04 -04:00 committed by Arthur Cohen
parent 3bbc4ca198
commit 215925bccc

View file

@ -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 ();