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 16 namespace lld { 17 namespace coff { 18 bool link(llvm::ArrayRef<const char *> Args, 19 llvm::raw_ostream &Diag = llvm::errs()); 20 } 21 22 namespace mingw { 23 bool link(llvm::ArrayRef<const char *> Args, 24 llvm::raw_ostream &Diag = llvm::errs()); 25 } 26 27 namespace elf { 28 bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly, 29 llvm::raw_ostream &Diag = llvm::errs()); 30 } 31 32 namespace mach_o { 33 bool link(llvm::ArrayRef<const char *> Args, 34 llvm::raw_ostream &Diag = llvm::errs()); 35 } 36 } 37 38 #endif 39