[PATCH] D49856: [COFF] clean up global resources after completion

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 26 10:11:40 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD338042: [COFF] clean up global resources after completion (authored by ruiu, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D49856?vs=157488&id=157523#toc

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D49856

Files:
  COFF/Driver.cpp


Index: COFF/Driver.cpp
===================================================================
--- COFF/Driver.cpp
+++ COFF/Driver.cpp
@@ -75,6 +75,9 @@
     exitLld(errorCount() ? 1 : 0);
 
   freeArena();
+  ObjFile::Instances.clear();
+  ImportFile::Instances.clear();
+  BitcodeFile::Instances.clear();
   return !errorCount();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49856.157523.patch
Type: text/x-patch
Size: 333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180726/85c163d8/attachment.bin>


More information about the llvm-commits mailing list