mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[gold/ThinLTO] Invoke llvm_shutdown when exiting after ThinLTO indexing
Summary: Instead of manually invoking PrintStatistics, simply invoke llvm_shutdown which will take care of destroying managed statics, and as a side effect will destroy the StatisticInfo ManagedStatic, invoking PrintStatistics when needed. Reviewers: fhahn Subscribers: inglorion, llvm-commits Differential Revision: https://reviews.llvm.org/D45820 llvm-svn: 330341
This commit is contained in:
parent
0a657a0d15
commit
a46a014736
@ -1061,8 +1061,7 @@ static ld_plugin_status allSymbolsReadHook() {
|
||||
return LDPS_OK;
|
||||
|
||||
if (options::thinlto_index_only) {
|
||||
if (llvm::AreStatisticsEnabled())
|
||||
llvm::PrintStatistics();
|
||||
llvm_shutdown();
|
||||
cleanup_hook();
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user