diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-07-07 19:53:45 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-09-03 19:42:31 +0100 |
commit | a45a7ecdf34311587daa2e90cc732adcefac447b (patch) | |
tree | f8675367a2a5f0cd9bbd6750275aa5cea3526683 /gcc/gimple-range-path.cc | |
parent | 88974974d8188cf12e87e4ad3d23a8cbdd557f0e (diff) | |
download | gcc-a45a7ecdf34311587daa2e90cc732adcefac447b.zip gcc-a45a7ecdf34311587daa2e90cc732adcefac447b.tar.gz gcc-a45a7ecdf34311587daa2e90cc732adcefac447b.tar.bz2 |
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.
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions