blob: 745ef720eaff31ea6461e56ef7ac3652ea991892 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- lld/Common/Driver.h - Linker Driver Emulator -----------------------===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLD_COMMON_DRIVER_H
10#define LLD_COMMON_DRIVER_H
11
12#include "llvm/ADT/ArrayRef.h"
13#include "llvm/Support/raw_ostream.h"
14
15namespace lld {
16namespace coff {
17bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
18 llvm::raw_ostream &Diag = llvm::errs());
19}
20
21namespace mingw {
22bool link(llvm::ArrayRef<const char *> Args,
23 llvm::raw_ostream &Diag = llvm::errs());
24}
25
26namespace elf {
27bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
28 llvm::raw_ostream &Diag = llvm::errs());
29}
30
31namespace mach_o {
Andrew Scullcdfcccc2018-10-05 20:58:37 +010032bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010033 llvm::raw_ostream &Diag = llvm::errs());
34}
35
36namespace wasm {
37bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly,
38 llvm::raw_ostream &Diag = llvm::errs());
39}
40}
41
42#endif