aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 00:29:32 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 00:29:32 +0000
commit96a564f2beec8c1930f0640844eec433e03bbce8 (patch)
treedb18bf84800e8860865f55dddd773256547604db /utils/TableGen/TableGen.cpp
parentee47edfd8e2dd048522ebd47305aeefbe9d8729c (diff)
downloadexternal_llvm-96a564f2beec8c1930f0640844eec433e03bbce8.zip
external_llvm-96a564f2beec8c1930f0640844eec433e03bbce8.tar.gz
external_llvm-96a564f2beec8c1930f0640844eec433e03bbce8.tar.bz2
Copy clang/Driver/<Option parsing stuff> to llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 8250b8c..06be55b 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -40,7 +40,8 @@ enum ActionType {
GenTgtIntrinsic,
GenEDInfo,
PrintEnums,
- PrintSets
+ PrintSets,
+ GenOptParserDefs
};
namespace {
@@ -82,6 +83,8 @@ namespace {
"Print enum values for a class"),
clEnumValN(PrintSets, "print-sets",
"Print expanded sets for testing DAG exprs"),
+ clEnumValN(GenOptParserDefs, "gen-opt-parser-defs",
+ "Generate option definitions"),
clEnumValEnd));
cl::opt<std::string>
@@ -138,6 +141,9 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
case GenEDInfo:
EmitEnhancedDisassemblerInfo(Records, OS);
break;
+ case GenOptParserDefs:
+ EmitOptParser(Records, OS);
+ break;
case PrintEnums:
{
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);