1 //===- lld/Driver/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_DRIVER_DRIVER_H 11 #define LLD_DRIVER_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 elf { 23 bool link(llvm::ArrayRef<const char *> Args, bool CanExitEarly, 24 llvm::raw_ostream &Diag = llvm::errs()); 25 } 26 27 namespace mach_o { 28 bool link(llvm::ArrayRef<const char *> Args, 29 llvm::raw_ostream &Diag = llvm::errs()); 30 } 31 } 32 33 #endif 34