xref: /llvm-project-15.0.7/lld/MachO/Driver.h (revision fbdcfcd4)
1 //===- Driver.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_DRIVER_H
10 #define LLD_MACHO_DRIVER_H
11 
12 #include "lld/Common/LLVM.h"
13 #include "llvm/Option/OptTable.h"
14 
15 namespace lld {
16 namespace macho {
17 
18 class MachOOptTable : public llvm::opt::OptTable {
19 public:
20   MachOOptTable();
21   llvm::opt::InputArgList parse(ArrayRef<const char *> argv);
22 };
23 
24 // Create enum with OPT_xxx values for each option in Options.td
25 enum {
26   OPT_INVALID = 0,
27 #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
28 #include "Options.inc"
29 #undef OPTION
30 };
31 
32 } // namespace macho
33 } // namespace lld
34 
35 #endif
36