blob: 45ec1ab6a0fc59d9c16b80c95b3a2f74f64aeff6 [file] [log] [blame]
Daniel Dunbarbe6ef382009-11-19 07:19:04 +00001//===--- CC1Options.cpp - Clang CC1 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/CC1Options.h"
11#include "clang/Driver/OptTable.h"
12#include "clang/Driver/Option.h"
Daniel Dunbar84e8a242009-11-19 20:54:59 +000013#include "clang/Frontend/CompilerInvocation.h"
14#include "llvm/ADT/SmallVector.h"
Daniel Dunbarbe6ef382009-11-19 07:19:04 +000015
16using namespace clang::driver;
17using namespace clang::driver::options;
18using namespace clang::driver::cc1options;
19
20static OptTable::Info CC1InfoTable[] = {
Daniel Dunbarbe6ef382009-11-19 07:19:04 +000021#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
22 HELPTEXT, METAVAR) \
23 { NAME, HELPTEXT, METAVAR, Option::KIND##Class, FLAGS, PARAM, \
24 OPT_##GROUP, OPT_##ALIAS },
25#include "clang/Driver/CC1Options.inc"
26};
27
28namespace {
29
30class CC1OptTable : public OptTable {
31public:
32 CC1OptTable()
33 : OptTable(CC1InfoTable, sizeof(CC1InfoTable) / sizeof(CC1InfoTable[0])) {}
34};
35
36}
37
38OptTable *clang::driver::createCC1OptTable() {
39 return new CC1OptTable();
40}
Daniel Dunbar84e8a242009-11-19 20:54:59 +000041
42//
43
44using namespace clang;
45
46void CompilerInvocation::CreateFromArgs(CompilerInvocation &Res,
47 const llvm::SmallVectorImpl<llvm::StringRef> &Args) {
48}