RFC: [PATCH] Support -plugin-opt=disable-output for LLVM plugin

H.J. Lu hjl.tools@gmail.com
Thu Feb 12 03:52:00 GMT 2015


On Wed, Feb 11, 2015 at 7:14 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Feb 11, 2015 at 6:48 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Wed, Feb 11, 2015 at 6:42 PM, Rafael Espíndola
>> <rafael.espindola@gmail.com> wrote:
>>>> You can use atexit.  It is used elsewhere in llvm.
>>>
>>> The plugin needs an early exit, not a way to schedule stuff to run at exit.
>>
>> If that is the case, my patch is the way to go.
>>
>
> You can do
>
> if (disable output) {
>   atexit (cleanup);
>   exit (0);
> }
>

Or

if (disable output) {
   remove output
   exit (0);
}



-- 
H.J.



More information about the Binutils mailing list