xref: /llvm-project-15.0.7/lld/MachO/Config.h (revision fbdcfcd4)
1 //===- Config.h -------------------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLD_MACHO_CONFIG_H
10 #define LLD_MACHO_CONFIG_H
11 
12 #include "llvm/ADT/StringRef.h"
13 #include "llvm/BinaryFormat/MachO.h"
14 
15 #include <vector>
16 
17 namespace lld {
18 namespace macho {
19 
20 class Symbol;
21 
22 struct Configuration {
23   Symbol *entry;
24   llvm::MachO::HeaderFileType outputType;
25   llvm::StringRef installName;
26   llvm::StringRef outputFile;
27   std::vector<llvm::StringRef> searchPaths;
28 };
29 
30 extern Configuration *config;
31 
32 } // namespace macho
33 } // namespace lld
34 
35 #endif
36