[Lldb-commits] [PATCH] D143061: [lldb][Language] Add more language types

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 1 09:46:30 PST 2023


Michael137 added inline comments.


================
Comment at: lldb/include/lldb/lldb-enumerations.h:492
+  eLanguageTypeAda2005 = 0x002e,
+  eLanguageTypeAda2012 = 0x002f,
+
----------------
aprantl wrote:
> Would it make sense to generate this list from the macros in `llvm/include/llvm/BinaryFormat/Dwarf.def` with some clever application of the ## operator?
The only thing that's stopping us from doing this is that the constants for the vendor extensions are not consecutive with the rest of the constants. So if one ever does try to use that language constant we'd run into out-of-bounds accesses here and there


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143061/new/

https://reviews.llvm.org/D143061



More information about the lldb-commits mailing list