blob: cc7c7a4fef1f7533bce677f4133c0ed644b1b019 [file] [log] [blame]
Daniel Dunbar2fcaa542010-05-20 17:49:16 +00001//===--- CC1AsOptions.cpp - Clang Assembler Options Table -----------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "clang/Driver/CC1AsOptions.h"
11#include "clang/Driver/Option.h"
12#include "clang/Driver/OptTable.h"
13using namespace clang;
14using namespace clang::driver;
15using namespace clang::driver::options;
16using namespace clang::driver::cc1asoptions;
17
18static const OptTable::Info CC1AsInfoTable[] = {
19#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
20 HELPTEXT, METAVAR) \
Michael J. Spencer9d1221a2012-09-25 23:12:48 +000021 { NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, FLAGS, \
Daniel Dunbar2fcaa542010-05-20 17:49:16 +000022 OPT_##GROUP, OPT_##ALIAS },
23#include "clang/Driver/CC1AsOptions.inc"
24};
25
26namespace {
27
28class CC1AsOptTable : public OptTable {
29public:
30 CC1AsOptTable()
31 : OptTable(CC1AsInfoTable,
32 sizeof(CC1AsInfoTable) / sizeof(CC1AsInfoTable[0])) {}
33};
34
35}
36
37OptTable *clang::driver::createCC1AsOptTable() {
38 return new CC1AsOptTable();
39}