[Lldb-commits] [lldb] [lldb][Language] Simplify SourceLanguage::GetDescription (PR #161804)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 3 14:57:44 PDT 2025
================
@@ -542,9 +542,22 @@ Language::Language() = default;
// Destructor
Language::~Language() = default;
+static llvm::dwarf::SourceLanguage
+ToDwarfSourceLanguage(lldb::LanguageType language_type) {
+ if (language_type < lldb::eLanguageTypeLastStandardLanguage)
+ return static_cast<llvm::dwarf::SourceLanguage>(language_type);
+
+ switch (language_type) {
+ case eLanguageTypeMipsAssembler:
+ return llvm::dwarf::DW_LANG_Mips_Assembler;
+ default: break;
+ }
+
+ llvm_unreachable("Unhandled language type");
----------------
Michael137 wrote:
true if the debuggee was compiled with a compiler that emitted a vendor language that LLDB isn't aware of. The would hit this codepath. Let me relax this a bit
https://github.com/llvm/llvm-project/pull/161804
More information about the lldb-commits
mailing list