summaryrefslogtreecommitdiffstats
path: root/lld/include/lld
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-10-23 20:03:32 +0000
committerRui Ueyama <ruiu@google.com>2017-10-23 20:03:32 +0000
commit6f4e255219f2a7878d3ac66d26313b9b8863e92f (patch)
treed615f65cdb9fa6c85863018cb11cfb7fac2d2c14 /lld/include/lld
parent9ed81c66ce72abb343e154b201b95e3913e78c70 (diff)
downloadbcm5719-llvm-6f4e255219f2a7878d3ac66d26313b9b8863e92f.tar.gz
bcm5719-llvm-6f4e255219f2a7878d3ac66d26313b9b8863e92f.zip
lld::COFF: better behavior when using as a library
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. Differential Revision: https://reviews.llvm.org/D39202 llvm-svn: 316370
Diffstat (limited to 'lld/include/lld')
-rw-r--r--lld/include/lld/Common/Driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/include/lld/Common/Driver.h b/lld/include/lld/Common/Driver.h
index b3fa4712816..dee46f808b1 100644
--- a/lld/include/lld/Common/Driver.h
+++ b/lld/include/lld/Common/Driver.h
@@ -15,7 +15,7 @@
namespace lld {
namespace coff {
-bool link(llvm::ArrayRef<const char *> Args,
+bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
llvm::raw_ostream &Diag = llvm::errs());
}
OpenPOWER on IntegriCloud