diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-07-31 23:28:51 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-07-31 23:28:51 +0000 |
| commit | 8669b974905751eaae2b139397a507194f9bd3e1 (patch) | |
| tree | 3752ac6630268f6bbdd48b47134c59554101e01c | |
| parent | 9f822cd1ec166a777d9d20f0595abe99844b0a60 (diff) | |
| download | bcm5719-llvm-8669b974905751eaae2b139397a507194f9bd3e1.tar.gz bcm5719-llvm-8669b974905751eaae2b139397a507194f9bd3e1.zip | |
Option parsing: remove non-SUPPORT_ALIASARGS fall-back
The clients of this code have been updated to all support AliasArgs.
This depends on Clang r187538 and lld r187541.
llvm-svn: 187546
| -rw-r--r-- | llvm/unittests/Option/OptionParsingTest.cpp | 2 | ||||
| -rw-r--r-- | llvm/utils/TableGen/OptParserEmitter.cpp | 16 |
2 files changed, 2 insertions, 16 deletions
diff --git a/llvm/unittests/Option/OptionParsingTest.cpp b/llvm/unittests/Option/OptionParsingTest.cpp index 101568a567e..2a5a5a9c947 100644 --- a/llvm/unittests/Option/OptionParsingTest.cpp +++ b/llvm/unittests/Option/OptionParsingTest.cpp @@ -17,8 +17,6 @@ using namespace llvm; using namespace llvm::opt; -#define SUPPORT_ALIASARGS // FIXME: Remove when no longer necessary. - enum ID { OPT_INVALID = 0, // This is not an option ID. #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ diff --git a/llvm/utils/TableGen/OptParserEmitter.cpp b/llvm/utils/TableGen/OptParserEmitter.cpp index d37939f635d..86328bf18f5 100644 --- a/llvm/utils/TableGen/OptParserEmitter.cpp +++ b/llvm/utils/TableGen/OptParserEmitter.cpp @@ -152,22 +152,11 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) { OS << "/////////\n"; OS << "// Groups\n\n"; OS << "#ifdef OPTION\n"; - - // FIXME: Remove when option parsing clients are updated. - OS << "#ifdef SUPPORT_ALIASARGS\n"; - OS << "#define OPTIONX OPTION\n"; - OS << "#else\n"; - OS << "#define OPTIONX(prefix, name, id, kind, group, alias, aliasargs, " - << "flags, param, helptext, metavar) " - << "OPTION(prefix, name, id, kind, " - << "group, alias, flags, param, helptext, metavar)\n"; - OS << "#endif\n"; - for (unsigned i = 0, e = Groups.size(); i != e; ++i) { const Record &R = *Groups[i]; // Start a single option entry. - OS << "OPTIONX("; + OS << "OPTION("; // The option prefix; OS << "0"; @@ -210,7 +199,7 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) { const Record &R = *Opts[i]; // Start a single option entry. - OS << "OPTIONX("; + OS << "OPTION("; // The option prefix; std::vector<std::string> prf = R.getValueAsListOfStrings("Prefixes"); @@ -287,7 +276,6 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) { OS << ")\n"; } - OS << "#undef OPTIONX\n"; // FIXME: Remove when option clients are updated. OS << "#endif\n"; } } // end namespace llvm |

