This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][patch] Fix plugin API to call cleanup handlers on error exits
- From: Ian Lance Taylor <iant at google dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 23 Dec 2008 17:40:30 -0800
- Subject: Re: [gold][patch] Fix plugin API to call cleanup handlers on error exits
- References: <c17be2b30812231711gaefafdfj11cfeff52e7aefdc@mail.gmail.com>
Cary Coutant <ccoutant@google.com> writes:
> * gold.cc (gold_exit): Call plugin cleanup handlers on exit.
> * plugin.cc (Plugin_manager::finish): Rename as
> layout_deferred_objects. Move cleanup to separate function.
> (Plugin_manager::cleanup): New function.
> (Plugin_finish::run): Call layout_deferred_objects and cleanup
> separately.
> * plugin.h (Plugin_manager::finish): Rename as
> layout_deferred_objects.
> (Plugin_manager::cleanup): New function.
> (Plugin_manager::cleanup_done): New field.
This is OK.
Thanks.
Ian