blob: 22180c92ca7fc1593b61915f0a4061a8d03c843f [file] [log] [blame]
Daniel Dunbar41b5b172010-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"
Craig Topperb9602322013-07-15 03:38:40 +000011#include "llvm/ADT/STLExtras.h"
Reid Klecknerb1e25a12013-06-14 17:17:23 +000012#include "llvm/Option/OptTable.h"
13#include "llvm/Option/Option.h"
Daniel Dunbar41b5b172010-05-20 17:49:16 +000014using namespace clang;
15using namespace clang::driver;
Reid Klecknerb1e25a12013-06-14 17:17:23 +000016using namespace llvm::opt;
Daniel Dunbar41b5b172010-05-20 17:49:16 +000017using namespace clang::driver::cc1asoptions;
18
Hans Wennborgb17a2c12013-07-17 16:54:06 +000019#define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE;
Michael J. Spencerc6357102012-10-22 22:13:48 +000020#include "clang/Driver/CC1AsOptions.inc"
Michael J. Spencerc6357102012-10-22 22:13:48 +000021#undef PREFIX
22
Daniel Dunbar41b5b172010-05-20 17:49:16 +000023static const OptTable::Info CC1AsInfoTable[] = {
Hans Wennborg43829282013-07-31 23:07:21 +000024#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
Daniel Dunbar41b5b172010-05-20 17:49:16 +000025 HELPTEXT, METAVAR) \
Michael J. Spencerc6357102012-10-22 22:13:48 +000026 { PREFIX, NAME, HELPTEXT, METAVAR, OPT_##ID, Option::KIND##Class, PARAM, \
Hans Wennborg43829282013-07-31 23:07:21 +000027 FLAGS, OPT_##GROUP, OPT_##ALIAS, ALIASARGS },
Daniel Dunbar41b5b172010-05-20 17:49:16 +000028#include "clang/Driver/CC1AsOptions.inc"
Hans Wennborgb17a2c12013-07-17 16:54:06 +000029#undef OPTION
Daniel Dunbar41b5b172010-05-20 17:49:16 +000030};
31
32namespace {
33
34class CC1AsOptTable : public OptTable {
35public:
36 CC1AsOptTable()
Craig Topperb9602322013-07-15 03:38:40 +000037 : OptTable(CC1AsInfoTable, llvm::array_lengthof(CC1AsInfoTable)) {}
Daniel Dunbar41b5b172010-05-20 17:49:16 +000038};
39
40}
41
42OptTable *clang::driver::createCC1AsOptTable() {
43 return new CC1AsOptTable();
44}