[Lldb-commits] [lldb] Add a new SBExpressionOptions::SetLanguage() API (NFCI) (PR #89981)
Nico Weber via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 30 06:37:31 PDT 2024
nico wrote:
Why does this use tablegen to parse a .def file?
Can't you get the same behavior without tablegen, using normal xmacro techniques, something like
```c++
enum SBSourceLanguageName : uint16_t {
#define HANDLE_DW_LNAME(ID, NAME, DESC, LOWER_BOUND) \
eLanguageName ## NAME = ID,
#include "llvm/include/llvm/BinaryFormat/Dwarf.def"
#undef HANDLE_DW_LNAME
};
```
? Why bring tablegen into this?
(Sorry if I'm missing something obvious.)
https://github.com/llvm/llvm-project/pull/89981
More information about the lldb-commits
mailing list