[lldb] Don't double emit option groups
We currently emit the option groups twice if Groups<[1,2,3]> is used in the tablegen. This leads to compilation errors. This patch just removes the line that accidentially emits the option group a second time. llvm-svn: 366414
This commit is contained in:
parent
63719119c7
commit
ce8df1f41d
|
@ -44,7 +44,6 @@ static void emitOption(Record *Option, raw_ostream &OS) {
|
||||||
auto Groups = Option->getValueAsListOfInts("Groups");
|
auto Groups = Option->getValueAsListOfInts("Groups");
|
||||||
for (int Group : Groups)
|
for (int Group : Groups)
|
||||||
GroupsArg.push_back("LLDB_OPT_SET_" + std::to_string(Group));
|
GroupsArg.push_back("LLDB_OPT_SET_" + std::to_string(Group));
|
||||||
OS << llvm::join(GroupsArg.begin(), GroupsArg.end(), " | ");
|
|
||||||
} else if (Option->getValue("GroupStart")) {
|
} else if (Option->getValue("GroupStart")) {
|
||||||
// The user specified a range of groups (with potentially only one element).
|
// The user specified a range of groups (with potentially only one element).
|
||||||
int GroupStart = Option->getValueAsInt("GroupStart");
|
int GroupStart = Option->getValueAsInt("GroupStart");
|
||||||
|
|
Loading…
Reference in New Issue