llvm.org GIT mirror llvm / 3e0bad6
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330341 91177308-0d34-0410-b5e6-96231b3b80d8 Teresa Johnson 2 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
10601060 return LDPS_OK;
10621062 if (options::thinlto_index_only) {
1063 if (llvm::AreStatisticsEnabled())
1064 llvm::PrintStatistics();
1063 llvm_shutdown();
10651064 cleanup_hook();
10661065 exit(0);
10671066 }