diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 01:46:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 01:46:53 +0000 |
commit | e1495eced887466e235f6a034953adf5ee1e14e6 (patch) | |
tree | 34ae4ea396e66ac1aee5bebdb464cba268ba485a /lib/Driver/OptTable.cpp | |
parent | d8cadd4f250d1b69373fc80477f67375d2c54820 (diff) |
Driver: Reorder arguments in Options.def so option name is first.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r-- | lib/Driver/OptTable.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp index 3308bc51a9..db910e1a31 100644 --- a/lib/Driver/OptTable.cpp +++ b/lib/Driver/OptTable.cpp @@ -19,22 +19,23 @@ using namespace clang::driver; using namespace clang::driver::options; struct Info { - Option::OptionClass Kind; const char *Name; + const char *Flags; + + Option::OptionClass Kind; unsigned GroupID; unsigned AliasID; - const char *Flags; unsigned Param; }; static Info OptionInfos[] = { // The InputOption info - { Option::InputClass, "<input>", 0, 0, "", 0 }, + { "<input>", "", Option::InputClass, 0, 0, 0 }, // The UnknownOption info - { Option::UnknownClass, "<unknown>", 0, 0, "", 0 }, + { "<unknown>", "", Option::UnknownClass, 0, 0, 0 }, -#define OPTION(ID, KIND, NAME, GROUP, ALIAS, FLAGS, PARAM) \ - { Option::KIND##Class, NAME, GROUP, ALIAS, FLAGS, PARAM }, +#define OPTION(NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM) \ + { NAME, FLAGS, Option::KIND##Class, GROUP, ALIAS, PARAM }, #include "clang/Driver/Options.def" }; static const unsigned numOptions = sizeof(OptionInfos) / sizeof(OptionInfos[0]); |