[PATCH] D45820: [gold/ThinLTO] Invoke llvm_shutdown when exiting after ThinLTO indexing

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 09:58:41 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL330341: [gold/ThinLTO] Invoke llvm_shutdown when exiting after ThinLTO indexing (authored by tejohnson, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45820

Files:
  llvm/trunk/tools/gold/gold-plugin.cpp


Index: llvm/trunk/tools/gold/gold-plugin.cpp
===================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp
+++ llvm/trunk/tools/gold/gold-plugin.cpp
@@ -1061,8 +1061,7 @@
     return LDPS_OK;
 
   if (options::thinlto_index_only) {
-    if (llvm::AreStatisticsEnabled())
-      llvm::PrintStatistics();
+    llvm_shutdown();
     cleanup_hook();
     exit(0);
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45820.143111.patch
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180419/4005856e/attachment.bin>


More information about the llvm-commits mailing list