diff options
author | walter erquinigo <walter@modular.com> | 2023-06-15 15:57:07 -0500 |
---|---|---|
committer | walter erquinigo <walter@modular.com> | 2023-06-26 11:31:48 -0500 |
commit | 582582fb474b8cd4103e65c3e5a705b3aff61794 (patch) | |
tree | 9ace6d2516c59dea9408a16c75eb491a3c248c93 /llvm/lib/IR/DIBuilder.cpp | |
parent | 40deed40ae77ba22f7c72693903752ab6bfeb4e7 (diff) | |
download | llvm-582582fb474b8cd4103e65c3e5a705b3aff61794.zip llvm-582582fb474b8cd4103e65c3e5a705b3aff61794.tar.gz llvm-582582fb474b8cd4103e65c3e5a705b3aff61794.tar.bz2 |
[LLDB] Add DWARF definitions for the new Mojo language
The new language Mojo recently received a proper DWARF code, which can be seen in https://dwarfstd.org/languages.html, and this patch adds the basic definitions for using this language in DWARF.
Differential Revision: https://reviews.llvm.org/D153073
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 0e6b974..1ce8c17 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -140,7 +140,7 @@ DICompileUnit *DIBuilder::createCompileUnit( DICompileUnit::DebugNameTableKind NameTableKind, bool RangesBaseAddress, StringRef SysRoot, StringRef SDK) { - assert(((Lang <= dwarf::DW_LANG_Ada2012 && Lang >= dwarf::DW_LANG_C89) || + assert(((Lang <= dwarf::DW_LANG_Mojo && Lang >= dwarf::DW_LANG_C89) || (Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) && "Invalid Language tag"); |