[LTO] Call llvm_shutdown on early exit.
authorDavide Italiano <davide@freebsd.org>
Thu, 10 Nov 2016 19:39:05 +0000 (19:39 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 10 Nov 2016 19:39:05 +0000 (19:39 +0000)
commit604d313816d570f13637c99a870c5f7930e9b385
tree41ee7161518080d363036bff69b1547853021c98
parent218ce83f0b1efaf6403ee580f499c5e07e515a05
[LTO] Call llvm_shutdown on early exit.

In a non-LTO build is a nop. In a LTO build, we deallocate/destroy
managed static and this allows us to get the output of, e.g.,
-time-passes without performing a full shutdown.

Differential Revision:  https://reviews.llvm.org/D26517

llvm-svn: 286493
lld/ELF/Error.cpp
lld/test/ELF/lto/timepasses.ll [new file with mode: 0644]