From f48b8fc06dd0046f195db08c9daf86ee4abc316e Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 5 Sep 2013 20:21:24 +0000 Subject: [PATCH] Remove unused identifiers. llvm-svn: 190095 --- lld/lib/Driver/CoreDriver.cpp | 3 +-- lld/lib/Driver/DarwinLdDriver.cpp | 3 +-- lld/lib/Driver/GnuLdDriver.cpp | 4 +--- 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 78c25da3593d..6d5e8a0a106e 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 71e57035fefa..422adb979a49 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 3154b4ea2a11..211f3affdaa8 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 3d87ed7a4a7d..eed92d2246b5 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 };