1//===- lld/Common/Driver.h - Linker Driver Emulator -----------------------===//
2//
3//                             The LLVM Linker
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLD_COMMON_DRIVER_H
11#define LLD_COMMON_DRIVER_H
12
13#include "llvm/ADT/ArrayRef.h"
14#include "llvm/Support/raw_ostream.h"
15
16namespace lld {
17namespace coff {
18bool link(llvm::ArrayRef<const char *> Args,
19          llvm::raw_ostream &Diag = llvm::errs());
20}
21
22namespace mingw {
23bool link(llvm::ArrayRef<const char *> Args,
24          llvm::raw_ostream &Diag = llvm::errs());
25}
26
27namespace elf {
28bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
29          llvm::raw_ostream &Diag = llvm::errs());
30}
31
32namespace mach_o {
33bool link(llvm::ArrayRef<const char *> Args,
34          llvm::raw_ostream &Diag = llvm::errs());
35}
36}
37
38#endif
39