summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-07-31 23:28:51 +0000
committerHans Wennborg <hans@hanshq.net>2013-07-31 23:28:51 +0000
commita15d5db7f25b609faa1780a954451e4a07d39f37 (patch)
tree6da5ee7fd769c7cd1dc18afff5c9301ac819846e /utils
parent9dd8c0cffe7de82900823c05159bba765120f1e3 (diff)
downloadllvm-a15d5db7f25b609faa1780a954451e4a07d39f37.tar.gz
llvm-a15d5db7f25b609faa1780a954451e4a07d39f37.tar.bz2
llvm-a15d5db7f25b609faa1780a954451e4a07d39f37.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/OptParserEmitter.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/utils/TableGen/OptParserEmitter.cpp b/utils/TableGen/OptParserEmitter.cpp
index d37939f635..86328bf18f 100644
--- a/utils/TableGen/OptParserEmitter.cpp
+++ b/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