[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 14:52:57 PDT 2025


================
@@ -169,6 +198,10 @@ class LLVM_ABI OptTable {
   OptTable(const StringTable &StrTable,
            ArrayRef<StringTable::Offset> PrefixesTable,
            ArrayRef<Info> OptionInfos, bool IgnoreCase = false);
----------------
PiJoules wrote:

Could probably just add 

```
ArrayRef<Command> Commands = {},
ArrayRef<unsigned> CommandIDsTable = {},
```

so you don't need to make another ctor. Same with other OpTables below.

https://github.com/llvm/llvm-project/pull/155026


More information about the llvm-commits mailing list