Start adding support for generating CC1 command lines from CompilerInvocation
[llvm-project.git] / lld / MachO / Driver.h
blob2233740d1db8335905e940cff33d5f4b2f4624e1
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 //===----------------------------------------------------------------------===//
9 #ifndef LLD_MACHO_DRIVER_H
10 #define LLD_MACHO_DRIVER_H
12 #include "lld/Common/LLVM.h"
13 #include "llvm/Option/OptTable.h"
15 namespace lld {
16 namespace macho {
18 class MachOOptTable : public llvm::opt::OptTable {
19 public:
20 MachOOptTable();
21 llvm::opt::InputArgList parse(ArrayRef<const char *> argv);
22 void printHelp(const char *argv0, bool showHidden) const;
25 // Create enum with OPT_xxx values for each option in Options.td
26 enum {
27 OPT_INVALID = 0,
28 #define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
29 #include "Options.inc"
30 #undef OPTION
33 } // namespace macho
34 } // namespace lld
36 #endif