1 //===- lld/Common/Driver.h - Linker Driver Emulator -----------------------===//
3 // 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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_COMMON_DRIVER_H
10 #define LLD_COMMON_DRIVER_H
12 #include "llvm/ADT/ArrayRef.h"
13 #include "llvm/Support/raw_ostream.h"
17 bool link(llvm::ArrayRef<const char *> args, bool canExitEarly,
18 llvm::raw_ostream &stdoutOS, llvm::raw_ostream &stderrOS);
22 bool link(llvm::ArrayRef<const char *> args, bool canExitEarly,
23 llvm::raw_ostream &stdoutOS, llvm::raw_ostream &stderrOS);
27 bool link(llvm::ArrayRef<const char *> args, bool canExitEarly,
28 llvm::raw_ostream &stdoutOS, llvm::raw_ostream &stderrOS);
32 bool link(llvm::ArrayRef<const char *> args, bool canExitEarly,
33 llvm::raw_ostream &stdoutOS, llvm::raw_ostream &stderrOS);
37 bool link(llvm::ArrayRef<const char *> args, bool canExitEarly,
38 llvm::raw_ostream &stdoutOS, llvm::raw_ostream &stderrOS);