1//===--- DriverOptions.cpp - Driver Options Table -------------------------===//
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#include "clang/Options/Options.h"
10#include "llvm/Option/OptTable.h"
11#include <cassert>
12
13using namespace clang::options;
14using namespace llvm::opt;
15
16#define OPTTABLE_VALUES_CODE
17#include "clang/Options/Options.inc"
18
19#define OPTTABLE_CODE
20#include "clang/Options/Options.inc"
21
22namespace {
23
24class DriverOptTable : public OptTable {
25public:
26 DriverOptTable() : OptTable(optionTables()) {
27 setValuesCodeFn(getOptionValuesCode);
28 }
29};
30} // anonymous namespace
31
32const llvm::opt::OptTable &clang::getDriverOptTable() {
33 static const DriverOptTable Table;
34 return Table;
35}
36