[lld] r241320 - COFF: Call exit(0) on success to not call destructors.

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jul 3 03:33:36 PDT 2015


On Fri, Jul 03, 2015 at 05:31:35AM -0000, Rui Ueyama wrote:
> Author: ruiu
> Date: Fri Jul  3 00:31:35 2015
> New Revision: 241320
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=241320&view=rev
> Log:
> COFF: Call exit(0) on success to not call destructors.
> 
> This change cut the link time of chrome.dll from 24 seconds
> to 22 seconds (5% gain). When the control reaches end of link(),
> all output files have already been written. All in-memory
> objects can just vanish. There is no use to call their dtors.

I think the comment at least should talk about local dtors, since global
objects are still destroyed?

Joerg



More information about the llvm-commits mailing list