diff options
-rw-r--r-- | lld/lib/Driver/CoreDriver.cpp | 3 | ||||
-rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 3 | ||||
-rw-r--r-- | lld/lib/Driver/GnuLdDriver.cpp | 4 | ||||
-rw-r--r-- | lld/lib/Driver/WinLinkDriver.cpp | 3 |
4 files changed, 4 insertions, 9 deletions
diff --git a/lld/lib/Driver/CoreDriver.cpp b/lld/lib/Driver/CoreDriver.cpp index 78c25da3593..6d5e8a0a106 100644 --- a/lld/lib/Driver/CoreDriver.cpp +++ b/lld/lib/Driver/CoreDriver.cpp @@ -31,13 +31,12 @@ using namespace lld; namespace { // Create enum with OPT_xxx values for each option in DarwinOptions.td -enum CoreOpt { +enum { OPT_INVALID = 0, #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELP, META) \ OPT_##ID, #include "CoreOptions.inc" - LastOption #undef OPTION }; diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 71e57035fef..422adb979a4 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -35,13 +35,12 @@ namespace { // Create enum with OPT_xxx values for each option in DarwinLdOptions.td -enum DarwinOpt { +enum { OPT_INVALID = 0, #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELP, META) \ OPT_##ID, #include "DarwinLdOptions.inc" - LastOption #undef OPTION }; diff --git a/lld/lib/Driver/GnuLdDriver.cpp b/lld/lib/Driver/GnuLdDriver.cpp index 3154b4ea2a1..211f3affdaa 100644 --- a/lld/lib/Driver/GnuLdDriver.cpp +++ b/lld/lib/Driver/GnuLdDriver.cpp @@ -33,17 +33,15 @@ using namespace lld; - namespace { // Create enum with OPT_xxx values for each option in GnuLdOptions.td -enum GnuLdOpt { +enum { OPT_INVALID = 0, #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELP, META) \ OPT_##ID, #include "GnuLdOptions.inc" - LastOption #undef OPTION }; diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp index 3d87ed7a4a7..eed92d2246b 100644 --- a/lld/lib/Driver/WinLinkDriver.cpp +++ b/lld/lib/Driver/WinLinkDriver.cpp @@ -32,13 +32,12 @@ namespace lld { namespace { // Create enum with OPT_xxx values for each option in WinLinkOptions.td -enum WinLinkOpt { +enum { OPT_INVALID = 0, #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELP, META) \ OPT_##ID, #include "WinLinkOptions.inc" - LastOption #undef OPTION }; |