mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user