]> git.ipfire.org Git - thirdparty/gcc.git/commit
coroutines: Add a helper for creating local vars.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 7 Jul 2021 18:53:45 +0000 (19:53 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 3 Sep 2021 18:42:31 +0000 (19:42 +0100)
commita45a7ecdf34311587daa2e90cc732adcefac447b
treef8675367a2a5f0cd9bbd6750275aa5cea3526683
parent88974974d8188cf12e87e4ad3d23a8cbdd557f0e
coroutines: Add a helper for creating local vars.

This is primarily code factoring, but we take this opportunity
to rename some of the implementation variables (which we intend
to expose to debugging) so that they are in the implementation
namespace.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/ChangeLog:

* coroutines.cc (coro_build_artificial_var): New.
(build_actor_fn): Use var builder, rename vars to use
implementation namespace.
(coro_rewrite_function_body): Likewise.
(morph_fn_to_coro): Likewise.
gcc/cp/coroutines.cc