aboutsummaryrefslogtreecommitdiff
path: root/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/utils/TableGen/LLDBOptionDefEmitter.cpp')
-rw-r--r--lldb/utils/TableGen/LLDBOptionDefEmitter.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
index ccf4827..d73f0a2 100644
--- a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
+++ b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
@@ -31,7 +31,6 @@ struct CommandOption {
std::string ArgType;
bool OptionalArg = false;
std::string Validator;
- std::string ArgEnum;
std::vector<StringRef> Completions;
std::string Description;
@@ -65,9 +64,6 @@ struct CommandOption {
if (Option->getValue("Validator"))
Validator = std::string(Option->getValueAsString("Validator"));
- if (Option->getValue("ArgEnum"))
- ArgEnum = std::string(Option->getValueAsString("ArgEnum"));
-
if (Option->getValue("Completions"))
Completions = Option->getValueAsListOfStrings("Completions");
@@ -114,8 +110,8 @@ static void emitOption(const CommandOption &O, raw_ostream &OS) {
OS << "nullptr";
OS << ", ";
- if (!O.ArgEnum.empty())
- OS << O.ArgEnum;
+ if (!O.ArgType.empty())
+ OS << "g_argument_table[eArgType" << O.ArgType << "].enum_values";
else
OS << "{}";
OS << ", ";