summaryrefslogtreecommitdiffstats
path: root/lld/include/lld
diff options
context:
space:
mode:
authorMartell Malone <martellmalone@gmail.com>2017-09-11 17:02:59 +0000
committerMartell Malone <martellmalone@gmail.com>2017-09-11 17:02:59 +0000
commit894dbbe8eb0e3d8fc7d8746a76d2380f0c2b6c0f (patch)
treee400c7b3369d3c4661d77533f00a38ef76acb7b1 /lld/include/lld
parent7b02020c7f1ccca4748654dfdd21144654db40e2 (diff)
downloadbcm5719-llvm-894dbbe8eb0e3d8fc7d8746a76d2380f0c2b6c0f.tar.gz
bcm5719-llvm-894dbbe8eb0e3d8fc7d8746a76d2380f0c2b6c0f.zip
LLD: Introduce a GNU LD style driver for COFF
When building COFF programs many targets such as mingw prefer to have a gnu ld frontend. Rather then having a fully fledged standalone driver we wrap a shim around the LINK driver. Extra tests were provided by mstorsjo Reviewers: mstorsjo, ruiu Differential Revision: https://reviews.llvm.org/D33880 llvm-svn: 312926
Diffstat (limited to 'lld/include/lld')
-rw-r--r--lld/include/lld/Driver/Driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/include/lld/Driver/Driver.h b/lld/include/lld/Driver/Driver.h
index 4ba0994e88b..655fcfef2ef 100644
--- a/lld/include/lld/Driver/Driver.h
+++ b/lld/include/lld/Driver/Driver.h
@@ -19,6 +19,11 @@ bool link(llvm::ArrayRef<const char *> Args,
llvm::raw_ostream &Diag = llvm::errs());
}
+namespace mingw {
+bool link(llvm::ArrayRef<const char *> Args,
+ llvm::raw_ostream &Diag = llvm::errs());
+}
+
namespace elf {
bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
llvm::raw_ostream &Diag = llvm::errs());
OpenPOWER on IntegriCloud