blob: f6d92933af62234057e18838a38e707219a1b1c7 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- 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, bool CanExitEarly,
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 {
Andrew Scullcdfcccc2018-10-05 20:58:37 +010033bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010034 llvm::raw_ostream &Diag = llvm::errs());
35}
36
37namespace wasm {
38bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
39 llvm::raw_ostream &Diag = llvm::errs());
40}
41}
42
43#endif