clang API Documentation

CC1AsOptions.cpp
Go to the documentation of this file.
00001 //===--- CC1AsOptions.cpp - Clang Assembler Options Table -----------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "clang/Driver/CC1AsOptions.h"
00011 #include "clang/Driver/Option.h"
00012 #include "clang/Driver/OptTable.h"
00013 using namespace clang;
00014 using namespace clang::driver;
00015 using namespace clang::driver::options;
00016 using namespace clang::driver::cc1asoptions;
00017 
00018 static const OptTable::Info CC1AsInfoTable[] = {
00019 #define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
00020                HELPTEXT, METAVAR)   \
00021   { NAME, HELPTEXT, METAVAR, Option::KIND##Class, PARAM, FLAGS, \
00022     OPT_##GROUP, OPT_##ALIAS },
00023 #include "clang/Driver/CC1AsOptions.inc"
00024 };
00025 
00026 namespace {
00027 
00028 class CC1AsOptTable : public OptTable {
00029 public:
00030   CC1AsOptTable()
00031     : OptTable(CC1AsInfoTable,
00032                sizeof(CC1AsInfoTable) / sizeof(CC1AsInfoTable[0])) {}
00033 };
00034 
00035 }
00036 
00037 OptTable *clang::driver::createCC1AsOptTable() {
00038   return new CC1AsOptTable();
00039 }