Author: Michael Buch
Date: 2026-01-29T15:12:31Z
New Revision: 1c0c4f4cf58c1f49fb531d733fdb7ce5e62bf0fa

URL: 
https://github.com/llvm/llvm-project/commit/1c0c4f4cf58c1f49fb531d733fdb7ce5e62bf0fa
DIFF: 
https://github.com/llvm/llvm-project/commit/1c0c4f4cf58c1f49fb531d733fdb7ce5e62bf0fa.diff

LOG: [lldb][SymbolFileDWARF][NFC] Call base class implementation of 
GetTypeSystemForLanguage (#178667)

Removes duplicated code by simply calling into the base-class.

Motivation is just that I stumbled upon this when making changes in the
surrounding area.

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 
b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index c6261910700cb..3a790afb1458d 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -519,12 +519,7 @@ SymbolFileDWARF::GetTypeSystemForLanguage(LanguageType 
language) {
   if (SymbolFileDWARFDebugMap *debug_map_symfile = GetDebugMapSymfile())
     return debug_map_symfile->GetTypeSystemForLanguage(language);
 
-  auto type_system_or_err =
-      m_objfile_sp->GetModule()->GetTypeSystemForLanguage(language);
-  if (type_system_or_err)
-    if (auto ts = *type_system_or_err)
-      ts->SetSymbolFile(this);
-  return type_system_or_err;
+  return SymbolFileCommon::GetTypeSystemForLanguage(language);
 }
 
 void SymbolFileDWARF::InitializeObject() {


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to