[PATCH] D39202: lld::COFF: better behavior when using as a library
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 12:45:44 PDT 2017
ruiu created this revision.
Previously, the COFF driver would call exit(0) when called
as a library. Now it takes `ExitEarly` option, and if it
is false, it doesn't exit. So it is now more library-friendly.
Furthermore, link() calls freeArena() before returning, to
clean up resources.
Based on an Andrew Kelley's patch.
https://reviews.llvm.org/D39202
Files:
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/Error.cpp
lld/COFF/Error.h
lld/MinGW/Driver.cpp
lld/include/lld/Common/Driver.h
lld/tools/lld/lld.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39202.119921.patch
Type: text/x-patch
Size: 4219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171023/0ff04920/attachment.bin>
More information about the llvm-commits
mailing list